예제 #1
0
 public PurechasesOperationsRepo(EntitiesDbContext context, ISafeOperationsRepo safeOperationsRepo, ISalesinvoicesOperationsRepo salesinvoicesOperationsRepo)
 {
     this._context                = context;
     _purechasesHeaderEntity      = context.Set <PurechasesHeader>();
     _safeOperationsRepo          = safeOperationsRepo;
     _salesinvoicesOperationsRepo = salesinvoicesOperationsRepo;
 }
예제 #2
0
 public UserOperationsRepo(EntitiesDbContext context)
 {
     this.context = context;
     userEntity   = context.Set <User>();
 }
예제 #3
0
 public T GetByCondition(Expression <Func <T, bool> > expression, string[] includes = null)
 {
     if (includes != null && includes.Count() > 0)
     {
         var query = dataContext.Set <T>().Include(includes.First());
         foreach (var include in includes.Skip(1))
         {
             query = query.Include(include);
         }
         return(query.FirstOrDefault(expression));
     }
     return(dataContext.Set <T>().FirstOrDefault(expression));
 }
예제 #4
0
 public OrderHeaderOperationsRepo(EntitiesDbContext context)
 {
     this._context      = context;
     _orderHeaderEntity = context.Set <OrderHeader>();
 }
예제 #5
0
 public RoleOperationsRepo(EntitiesDbContext context)
 {
     this.context = context;
     roleEntity   = context.Set <Role>();
 }
 public AccountRepo(EntitiesDbContext context)
 {
     this.context = context;
     userEntity   = context.Set <User>();
 }
 public Order_PurechaseOperationsRepo(EntitiesDbContext context)
 {
     this._context          = context;
     _order_purechaseEntity = context.Set <Order_Purechase>();
 }
예제 #8
0
 public OrderDetailsOperationsRepo(EntitiesDbContext context)
 {
     this._context     = context;
     _sellerEntity     = context.Set <OrderDetails>();
     _sellerEntityList = context.Set <List <OrderDetails> >();
 }
예제 #9
0
 public SafeOperationsRepo(EntitiesDbContext context)
 {
     this._context = context;
     _safeEntity   = context.Set <Safe>();
 }
예제 #10
0
 public FarmerOperationsRepo(EntitiesDbContext context, ISafeOperationsRepo safeOperationsRepo)
 {
     _context            = context;
     _farmerEntity       = context.Set <Farmer>();
     _safeOperationsRepo = safeOperationsRepo;
 }
예제 #11
0
 public GenericRepository(EntitiesDbContext db)
 {
     _db    = db;
     _table = _db.Set <TEntity>();
 }
예제 #12
0
 public OrderHeaderRepository(EntitiesDbContext context, ISafeOperationsRepo safeOperationsRepo)
 {
     _context            = context;
     _sellerEntity       = context.Set <Seller>();
     _safeOperationsRepo = safeOperationsRepo;
 }