Example #1
0
 public MonitoringRepository(ProductControlContext context)
 {
     this.db = context;
 }
Example #2
0
 public OrderRepository(ProductControlContext context)
 {
     this.db = context;
 }
Example #3
0
 public SensorRepository(ProductControlContext context)
 {
     this.db = context;
 }
Example #4
0
 public EFUnitOfWork(string connectionString)
 {
     db          = new ProductControlContext(connectionString);
     userManager = new ApplicationUserManager(new UserStore <ApplicationUser>(db));
     roleManager = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db));
 }