public static FCCLDbContext GetContext(string app) { FCCLDbContext context = null; FCCLApp appNo; if (Enum.TryParse(app, out appNo)) { context = new FCCLDbContext(appNo); } if (context == null) { throw new Exception("Could not create FCCLDbContext!"); } return(context); }
public IntervalManager(FCCLDbContext context) { repo = new CachedRepository <Interval>(context); application = (short)context.Application; }
public MachineManager(FCCLDbContext context) { repo = new CachedRepository <Machine>(context); application = (short)context.Application; }
public SettingManager(FCCLDbContext context) { repo = new CachedRepository <Setting>(context); application = (short)context.Application; }
public UserManager(FCCLDbContext context) { dbContext = context; }
public ReceptieManager(FCCLDbContext context) { dbContext = context; }
public ReportManager(FCCLDbContext context) { repo = new Repository <Report>(context); application = (short)context.Application; this.context = context; }
public FileImporter(FCCLDbContext context, string localServer) { logger.Info(string.Format("FileImporter Ctor|localServer:{0}", localServer)); this.localServer = localServer; mManager = new MachineManager(context); }