Exemplo n.º 1
0
 public DUserRepository(JohanAgroFoodDBEntities context)
     : base(context)
 {
     this.context = context;
 }
 public DConsumptionRepository(JohanAgroFoodDBEntities context)
     : base(context)
 {
     this.context = context;
 }
 public DDuePaymentRepository(JohanAgroFoodDBEntities context)
     : base(context)
 {
     this.context = context;
 }
Exemplo n.º 4
0
 public DBalancePaddyRepository(JohanAgroFoodDBEntities context)
     : base(context)
 {
     this.context = context;
 }
Exemplo n.º 5
0
 public Disposable(JohanAgroFoodDBEntities context)
 {
     this.context = context;
     this.context.Configuration.ProxyCreationEnabled = false;
 }
Exemplo n.º 6
0
        public static List <tblCommonElement> GetAllSector(JohanAgroFoodDBEntities context)
        {
            List <tblCommonElement> sectors = context.tblCommonElements.Where(cc => cc.elementCode == 3).ToList();

            return(sectors);
        }
Exemplo n.º 7
0
 public static tblProduct GetProductByName(JohanAgroFoodDBEntities context, string name)
 {
     return(context.tblProducts.Where(pp => pp.productName == name).FirstOrDefault());
 }
Exemplo n.º 8
0
        public static List <STK_tblStock> GetAllStock(JohanAgroFoodDBEntities context)
        {
            List <STK_tblStock> stocks = context.STK_tblStock.ToList();

            return(stocks);
        }
Exemplo n.º 9
0
        public static List <tblParty> GetAllParty(JohanAgroFoodDBEntities context)
        {
            List <tblParty> partys = context.tblParties.ToList();

            return(partys);
        }
Exemplo n.º 10
0
 public static List <tblProduct> GetAllProduct(JohanAgroFoodDBEntities context)
 {
     return(context.tblProducts.ToList());
 }
Exemplo n.º 11
0
 public DPaddyDuesRepository(JohanAgroFoodDBEntities context)
     : base(context)
 {
     this.context = context;
 }
 public DParticleSellRepository(JohanAgroFoodDBEntities context)
     : base(context)
 {
     this.context = context;
 }