private IEnumerable <StoreHouse> GetStoreHousesCore() { using (ExtendedIdentityDbContext dxContext = ExtendedIdentityDbContext.Create()) { return(dxContext.StoreHouses.AsNoTracking().AsParallel() .Where(m => m.IsDeleted == false) .OrderBy(m => m.StoreHouseName).ToList()); } }
private IEnumerable <YuShang.ERP.Entities.ResMgr.Supplier> GetSuppliersCore() { using (ExtendedIdentityDbContext dxContext = ExtendedIdentityDbContext.Create()) { return(dxContext.Suppliers.AsNoTracking().AsParallel() .Where(m => m.IsDeleted == false) .OrderBy(m => m.SupplierName).ToList()); } }
private IEnumerable <SaleClient> GetSaleClientsCore() { using (ExtendedIdentityDbContext dxContext = ExtendedIdentityDbContext.Create()) { return(dxContext.SaleClients.AsNoTracking().AsParallel() .Where(m => m.IsDeleted == false) .OrderBy(m => m.CompanyName).ToList()); } }
private IEnumerable <MainlandLogisticsCompany> GetMainlandLogisticsCompaniesCore() { using (ExtendedIdentityDbContext dxContext = ExtendedIdentityDbContext.Create()) { return(dxContext.MainlandLogistics.AsNoTracking().AsParallel() .Where(m => m.IsDeleted == false || m.MainlandLogisticsCompanyId == 0) .OrderBy(m => m.MainlandLogisticsCompanyId).ThenBy(m => m.CompanyName).ToList()); } }
private IEnumerable <Harbor> GetHarborsCore() { using (ExtendedIdentityDbContext dxContext = ExtendedIdentityDbContext.Create()) { return(dxContext.Harbors.AsNoTracking().AsParallel() .Where(m => m.IsDeleted == false) .OrderBy(m => m.HarborNameENG).ToList()); } }
private IEnumerable <Product> GetProductsCore() { using (ExtendedIdentityDbContext dxContext = ExtendedIdentityDbContext.Create()) { return(dxContext.Products.AsNoTracking().AsParallel() .Where(m => m.IsDeleted == false) .OrderBy(m => m.ProductName).ToList()); } }
protected PrivilegeManager() { m_dbContext = ExtendedIdentityDbContext.Create(); //this.m_userManager = new PrivilegeFramework.ApplicationUserManager( // new UserStore<YuShang.ERP.Entities.Privileges.SysUser, SysRole, // int, SysUserLogin, SysUserRole, SysUserClaim>( // m_dbContext), m_dbContext); }