Пример #1
0
 public GenericRepository(DeliveryServiceDBContext dbcontext)
 {
     this.dbContext = dbcontext;
     this.dbSet     = dbContext.Set <T>();
     this.dbContext.Configuration.LazyLoadingEnabled       = false;
     this.dbContext.Configuration.AutoDetectChangesEnabled = false;
     this.dbContext.Configuration.ProxyCreationEnabled     = false;
 }
 public BaseModelsRepository(DeliveryServiceDBContext db) : base(db)
 {
     //NestedProperties = new[] { "X", "Y", "Z" };
 }
Пример #3
0
 public AuthenticationService(DeliveryServiceDBContext context)
 {
     _context = context;
 }
Пример #4
0
 public OrderServiceApi(ICustomer customer, DeliveryServiceDBContext context)
 {
     _customer = customer;
     _context  = context;
 }
Пример #5
0
 public PointsRepository(DeliveryServiceDBContext db) : base(db)
 {
     NestedProperties = new[] { "DepartureRoutes", "ArrivalRoutes" };
 }
Пример #6
0
 public CustomerServiceApi(DeliveryServiceDBContext context)
 {
     this._context = context;
 }