public PurechasesOperationsRepo(EntitiesDbContext context, ISafeOperationsRepo safeOperationsRepo, ISalesinvoicesOperationsRepo salesinvoicesOperationsRepo) { this._context = context; _purechasesHeaderEntity = context.Set <PurechasesHeader>(); _safeOperationsRepo = safeOperationsRepo; _salesinvoicesOperationsRepo = salesinvoicesOperationsRepo; }
public UserOperationsRepo(EntitiesDbContext context) { this.context = context; userEntity = context.Set <User>(); }
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)); }
public OrderHeaderOperationsRepo(EntitiesDbContext context) { this._context = context; _orderHeaderEntity = context.Set <OrderHeader>(); }
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>(); }
public OrderDetailsOperationsRepo(EntitiesDbContext context) { this._context = context; _sellerEntity = context.Set <OrderDetails>(); _sellerEntityList = context.Set <List <OrderDetails> >(); }
public SafeOperationsRepo(EntitiesDbContext context) { this._context = context; _safeEntity = context.Set <Safe>(); }
public FarmerOperationsRepo(EntitiesDbContext context, ISafeOperationsRepo safeOperationsRepo) { _context = context; _farmerEntity = context.Set <Farmer>(); _safeOperationsRepo = safeOperationsRepo; }
public GenericRepository(EntitiesDbContext db) { _db = db; _table = _db.Set <TEntity>(); }
public OrderHeaderRepository(EntitiesDbContext context, ISafeOperationsRepo safeOperationsRepo) { _context = context; _sellerEntity = context.Set <Seller>(); _safeOperationsRepo = safeOperationsRepo; }