Many changes, Config depends on Users, not vice versa.
This commit is contained in:
@@ -203,7 +203,7 @@ namespace TBF.BenchControl
|
||||
{
|
||||
/// Load the list of components (entities) from the database.
|
||||
/// Then create the components (derived from IComponent).
|
||||
components = BenchControl.TbfComponents.LoadComponentsFromDB(Config.FluentCommon.CreateSession(Config.Entities.DBKind.Config));
|
||||
components = BenchControl.TbfComponents.LoadComponentsFromDB(Config.FluentCommon.CreateSession(Users.Entities.DBKind.Config));
|
||||
MasterValves = GenericDevices.ValveBase.MasterValves(components);
|
||||
CoupledValves = GenericDevices.ValveBase.CoupledValves(components);
|
||||
ExtendedValves = GenericDevices.ValveBase.ExtendedValves(components);
|
||||
@@ -337,7 +337,7 @@ namespace TBF.BenchControl
|
||||
|
||||
public static void LoadProcedure(bool loadPathsOnly)
|
||||
{
|
||||
ISession session = Config.FluentCommon.CreateSession(Config.Entities.DBKind.Config);
|
||||
ISession session = Config.FluentCommon.CreateSession(Users.Entities.DBKind.Config);
|
||||
WtSession = session;
|
||||
|
||||
feedingPaths = session.QueryOver<Config.Entities.FeedingPath>().OrderBy(x => x.ItemNr).Asc.List();
|
||||
|
||||
Reference in New Issue
Block a user