Exemple #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);
        }
 public IntervalManager(FCCLDbContext context)
 {
     repo        = new CachedRepository <Interval>(context);
     application = (short)context.Application;
 }
Exemple #3
0
 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;
 }
Exemple #5
0
 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;
 }
Exemple #8
0
 public FileImporter(FCCLDbContext context, string localServer)
 {
     logger.Info(string.Format("FileImporter Ctor|localServer:{0}", localServer));
     this.localServer = localServer;
     mManager         = new MachineManager(context);
 }