コード例 #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;
 }
コード例 #2
0
 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;
 }