Common.Data --> TBF.Data and TBF.DB

This commit is contained in:
Milan Hanajik
2021-09-19 14:44:55 +02:00
parent 709636e82b
commit a0aea713b0
86 changed files with 473 additions and 438 deletions
+5 -5
View File
@@ -138,7 +138,7 @@ namespace TBF.UI.Procedures
#endif
if (initialMode == Mode.PermanentlyLocked) sharedButtons.DisableUnlock();
using (NHibernate.ISession session = Config.FluentCommon.CreateSession(DBKind.Config))
using (NHibernate.ISession session = TBF.DB.CreateSession(DBKind.Config))
{
///
/// Prepare a list of components and a list of all valves in the test bench
@@ -308,7 +308,7 @@ namespace TBF.UI.Procedures
if (usedPath != null)
{
IList<IComponent> cmpntsInMPath = new List<IComponent>();
for (int i = 0; i < Common.Data.WMsCount; i++)
for (int i = 0; i < TBF.Data.WMsCount; i++)
{
IComponent sensor = TbfComponents.FirstOrDefault<IComponent>(x => (x.Cfg.Name.Equals(usedPath.GetSensor(i))));
cmpntsInMPath.Add(sensor);
@@ -703,7 +703,7 @@ namespace TBF.UI.Procedures
void RefreshHistoryTab()
{
NHibernate.ISession session = Config.FluentCommon.CreateSession(DBKind.Config);
NHibernate.ISession session = TBF.DB.CreateSession(DBKind.Config);
IList<Procedure> procedures = session
.QueryOver<Procedure>()
.Where(x => x.ProcedureState == ProcedureState.History)
@@ -2662,7 +2662,7 @@ namespace TBF.UI.Procedures
MetersPath sensorsPath = metersPaths.FirstOrDefault<MetersPath>(x => (x.Name == sensorsPathName));
if (sensorsPath != null)
{
for (int i = 0; i < Common.Data.WMsCount; i++)
for (int i = 0; i < TBF.Data.WMsCount; i++)
{
IComponent sensor = TbfComponents.FirstOrDefault<IComponent>(x => (x.Cfg.Name.Equals(sensorsPath.GetSensor(i))));
cmpntsInSensPath.Add(sensor);
@@ -2729,7 +2729,7 @@ namespace TBF.UI.Procedures
break;
}
using (NHibernate.ISession session = Config.FluentCommon.CreateSession(DBKind.Config))
using (NHibernate.ISession session = TBF.DB.CreateSession(DBKind.Config))
{
IList<Test> testsToBeUpdated = new List<Test>();