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