public IEnumerable <string> GetCustomerGroupIDs()
 {
     using (CDQMContext entityContext = new CDQMContext())
     {
         return(entityContext.CDQMCustomerDuplicateSet.Select(c => c.COD_GROUP_ID).ToFullyLoaded());
     }
 }
 public CDQMCustomerDuplicate GetCustomerDuplicate(string customerId)
 {
     using (CDQMContext entityContext = new CDQMContext())
     {
         return(entityContext.CDQMCustomerDuplicateSet.Where(c => c.COD_CUST_ID == customerId).FirstOrDefault());
     }
 }
 public IEnumerable <CDQMCustomerDuplicate> GetCustomerDuplicates(string groupId)
 {
     using (CDQMContext entityContext = new CDQMContext())
     {
         return(entityContext.CDQMCustomerDuplicateSet.Where(c => c.COD_GROUP_ID == groupId).ToFullyLoaded());
     }
 }
コード例 #4
0
        protected override CDQMCustomerMIS GetEntity(CDQMContext entityContext, int id)
        {
            var query = (from e in entityContext.Set <CDQMCustomerMIS>()
                         where e.CustomerMISId == id
                         select e);

            var results = query.FirstOrDefault();

            return(results);
        }
コード例 #5
0
        protected override CDQMETLConfiguration GetEntity(CDQMContext entityContext, int id)
        {
            var query = (from e in entityContext.Set <CDQMETLConfiguration>()
                         where e.ETLConfigurationId == id
                         select e);

            var results = query.FirstOrDefault();

            return(results);
        }
        protected override CDQMGenderGroup GetEntity(CDQMContext entityContext, int id)
        {
            var query = (from e in entityContext.Set <CDQMGenderGroup>()
                         where e.GenderGroupId == id
                         select e);

            var results = query.FirstOrDefault();

            return(results);
        }
        protected override CDQMCustomerPersistent GetEntity(CDQMContext entityContext, int id)
        {
            var query = (from e in entityContext.Set <CDQMCustomerPersistent>()
                         where e.CUSTOMER_PERSISTENT_ID == id
                         select e);

            var results = query.FirstOrDefault();

            return(results);
        }
        protected override CDQMCustomerDuplicate GetEntity(CDQMContext entityContext, int id)
        {
            var query = (from e in entityContext.Set <CDQMCustomerDuplicate>()
                         where e.CUST_DUPLICATES_ID == id
                         select e);

            var results = query.FirstOrDefault();

            return(results);
        }
        public IEnumerable <CDQMCustomerPersistent> GetCustomerPersistents(string groupId)
        {
            using (CDQMContext entityContext = new CDQMContext())
            {
                var query = from a in entityContext.CDQMCustomerPersistentSet
                            where a.COD_GROUP_ID == groupId
                            select a;

                return(query.ToFullyLoaded());
            }
        }
コード例 #10
0
 protected override CDQMCustomerMIS AddEntity(CDQMContext entityContext, CDQMCustomerMIS entity)
 {
     return(entityContext.Set <CDQMCustomerMIS>().Add(entity));
 }
コード例 #11
0
 protected override IEnumerable <CDQMGenderGroup> GetEntities(CDQMContext entityContext)
 {
     return(from e in entityContext.Set <CDQMGenderGroup>()
            select e);
 }
コード例 #12
0
 protected override CDQMGenderGroup UpdateEntity(CDQMContext entityContext, CDQMGenderGroup entity)
 {
     return((from e in entityContext.Set <CDQMGenderGroup>()
             where e.GenderGroupId == entity.GenderGroupId
             select e).FirstOrDefault());
 }
コード例 #13
0
 protected override CDQMGenderGroup AddEntity(CDQMContext entityContext, CDQMGenderGroup entity)
 {
     return(entityContext.Set <CDQMGenderGroup>().Add(entity));
 }
コード例 #14
0
 protected override CDQMTitle UpdateEntity(CDQMContext entityContext, CDQMTitle entity)
 {
     return((from e in entityContext.Set <CDQMTitle>()
             where e.TitleId == entity.TitleId
             select e).FirstOrDefault());
 }
コード例 #15
0
 protected override CDQMTitle AddEntity(CDQMContext entityContext, CDQMTitle entity)
 {
     return(entityContext.Set <CDQMTitle>().Add(entity));
 }
コード例 #16
0
 protected override IEnumerable <CDQMETLConfiguration> GetEntities(CDQMContext entityContext)
 {
     return(from e in entityContext.Set <CDQMETLConfiguration>()
            select e);
 }
コード例 #17
0
 protected override CDQMAddress AddEntity(CDQMContext entityContext, CDQMAddress entity)
 {
     return(entityContext.Set <CDQMAddress>().Add(entity));
 }
コード例 #18
0
 protected override CDQMProduct AddEntity(CDQMContext entityContext, CDQMProduct entity)
 {
     return(entityContext.Set <CDQMProduct>().Add(entity));
 }
コード例 #19
0
 protected override CDQMETLConfiguration AddEntity(CDQMContext entityContext, CDQMETLConfiguration entity)
 {
     return(entityContext.Set <CDQMETLConfiguration>().Add(entity));
 }
 protected override CDQMCustomerDuplicate UpdateEntity(CDQMContext entityContext, CDQMCustomerDuplicate entity)
 {
     return((from e in entityContext.Set <CDQMCustomerDuplicate>()
             where e.CUST_DUPLICATES_ID == entity.CUST_DUPLICATES_ID
             select e).FirstOrDefault());
 }
 protected override CDQMCustomerDuplicate AddEntity(CDQMContext entityContext, CDQMCustomerDuplicate entity)
 {
     return(entityContext.Set <CDQMCustomerDuplicate>().Add(entity));
 }
コード例 #22
0
 protected override CDQMMerchant AddEntity(CDQMContext entityContext, CDQMMerchant entity)
 {
     return(entityContext.Set <CDQMMerchant>().Add(entity));
 }
コード例 #23
0
 protected override CDQMProduct UpdateEntity(CDQMContext entityContext, CDQMProduct entity)
 {
     return((from e in entityContext.Set <CDQMProduct>()
             where e.ProductId == entity.ProductId
             select e).FirstOrDefault());
 }
コード例 #24
0
 protected override IEnumerable <CDQMCustomerMIS> GetEntities(CDQMContext entityContext)
 {
     return(from e in entityContext.Set <CDQMCustomerMIS>()
            select e);
 }
コード例 #25
0
 protected override CDQMAddress UpdateEntity(CDQMContext entityContext, CDQMAddress entity)
 {
     return((from e in entityContext.Set <CDQMAddress>()
             where e.AddressId == entity.AddressId
             select e).FirstOrDefault());
 }
コード例 #26
0
 protected override CDQMETLConfiguration UpdateEntity(CDQMContext entityContext, CDQMETLConfiguration entity)
 {
     return((from e in entityContext.Set <CDQMETLConfiguration>()
             where e.ETLConfigurationId == entity.ETLConfigurationId
             select e).FirstOrDefault());
 }
コード例 #27
0
 protected override CDQMCustomerMIS UpdateEntity(CDQMContext entityContext, CDQMCustomerMIS entity)
 {
     return((from e in entityContext.Set <CDQMCustomerMIS>()
             where e.CustomerMISId == entity.CustomerMISId
             select e).FirstOrDefault());
 }
コード例 #28
0
 protected override CDQMCountry AddEntity(CDQMContext entityContext, CDQMCountry entity)
 {
     return(entityContext.Set <CDQMCountry>().Add(entity));
 }
コード例 #29
0
 protected override CDQMCountry UpdateEntity(CDQMContext entityContext, CDQMCountry entity)
 {
     return((from e in entityContext.Set <CDQMCountry>()
             where e.CountryId == entity.CountryId
             select e).FirstOrDefault());
 }
 protected override CDQMCustomerPersistent UpdateEntity(CDQMContext entityContext, CDQMCustomerPersistent entity)
 {
     return((from e in entityContext.Set <CDQMCustomerPersistent>()
             where e.CUSTOMER_PERSISTENT_ID == entity.CUSTOMER_PERSISTENT_ID
             select e).FirstOrDefault());
 }