Example #1
0
		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;
		}
Example #2
0
		public ReportManager(FCCLDbContext context)
		{
			repo = new Repository<Report>(context);
			application = (short)context.Application;
			this.context = context;
		}
Example #3
0
		public MachineManager(FCCLDbContext context)
		{
			repo = new CachedRepository<Machine>(context);
			application = (short)context.Application;
		}
Example #4
0
 public UserManager(FCCLDbContext context)
 {
     dbContext = context;
 }
Example #5
0
		public SettingManager(FCCLDbContext context)
		{
			repo = new CachedRepository<Setting>(context);
			application = (short)context.Application;
		}
Example #6
0
		public IntervalManager(FCCLDbContext context)
		{
			repo = new CachedRepository<Interval>(context);
			application = (short)context.Application;
		}
Example #7
0
		public ReceptieManager(FCCLDbContext context)
		{
			dbContext = context;
		}
Example #8
0
		public FileImporter(FCCLDbContext context, string localServer)
		{
			logger.Info(string.Format("FileImporter Ctor|localServer:{0}", localServer));
			this.localServer = localServer;
			mManager = new MachineManager(context);
		}