Esempio n. 1
0
 private IEnumerable <StoreHouse> GetStoreHousesCore()
 {
     using (ExtendedIdentityDbContext dxContext = ExtendedIdentityDbContext.Create())
     {
         return(dxContext.StoreHouses.AsNoTracking().AsParallel()
                .Where(m => m.IsDeleted == false)
                .OrderBy(m => m.StoreHouseName).ToList());
     }
 }
Esempio n. 2
0
 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());
     }
 }
Esempio n. 3
0
 private IEnumerable <SaleClient> GetSaleClientsCore()
 {
     using (ExtendedIdentityDbContext dxContext = ExtendedIdentityDbContext.Create())
     {
         return(dxContext.SaleClients.AsNoTracking().AsParallel()
                .Where(m => m.IsDeleted == false)
                .OrderBy(m => m.CompanyName).ToList());
     }
 }
Esempio n. 4
0
 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());
     }
 }
Esempio n. 5
0
 private IEnumerable <Harbor> GetHarborsCore()
 {
     using (ExtendedIdentityDbContext dxContext = ExtendedIdentityDbContext.Create())
     {
         return(dxContext.Harbors.AsNoTracking().AsParallel()
                .Where(m => m.IsDeleted == false)
                .OrderBy(m => m.HarborNameENG).ToList());
     }
 }
Esempio n. 6
0
 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);
        }