コード例 #1
0
        // this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.CircleMaster objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.CircleMaster>(x => x.circleid), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.CircleMaster>(x => x.circle_name), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.CircleMaster>(x => x.circle_code), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.CircleMaster>(x => x.countryid), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.CircleMaster>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.CircleMaster>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #2
0
        // this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.Complain objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Complain>(x => x.complainid), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Complain>(x => x.rechargeid), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Complain>(x => x.complaintype), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Complain>(x => x.detail), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Complain>(x => x.complainstatus), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Complain>(x => x.adminremarks), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Complain>(x => x.SystemDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Complain>(x => x.CreatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Complain>(x => x.CreatedDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Complain>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Complain>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #3
0
        // this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.DMT_Documents objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_Documents>(x => x.dd_id), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_Documents>(x => x.dd_userid), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_Documents>(x => x.dd_page1), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_Documents>(x => x.dd_page2), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_Documents>(x => x.dd_type), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_Documents>(x => x.dd_status), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_Documents>(x => x.dd_remarks), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_Documents>(x => x.SystemDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_Documents>(x => x.CreatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_Documents>(x => x.CreatedDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_Documents>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_Documents>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #4
0
        // this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.RofferMapped objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferMapped>(x => x.roffermapid), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferMapped>(x => x.creditlimit), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferMapped>(x => x.expirydate), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferMapped>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferMapped>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #5
0
        // this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.RofferAPI objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferAPI>(x => x.rofferid), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferAPI>(x => x.rofferurl), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferAPI>(x => x.simpleurl), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferAPI>(x => x.dthplanurl), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferAPI>(x => x.dthinfourl), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferAPI>(x => x.title), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferAPI>(x => x.perdaylimit), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferAPI>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.RofferAPI>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #6
0
        // this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.ApplicationVersion objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.appversionid), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.androidversion), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.iosversion), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.SystemDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.CreatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.CreatedDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #7
0
        // this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.ErrorLog objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ErrorLog>(x => x.errorid), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ErrorLog>(x => x.errocode), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ErrorLog>(x => x.errortext), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ErrorLog>(x => x.errorfileurl), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ErrorLog>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ErrorLog>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #8
0
        // this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.WalletRequest objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.WalletRequest>(x => x.wr_id), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.WalletRequest>(x => x.wr_bankname), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.WalletRequest>(x => x.wr_accountno), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.WalletRequest>(x => x.wr_amount), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.WalletRequest>(x => x.wr_refrenceid), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.WalletRequest>(x => x.wr_remakrs), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.WalletRequest>(x => x.wr_status), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.WalletRequest>(x => x.SystemDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.WalletRequest>(x => x.CreatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.WalletRequest>(x => x.CreatedDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.WalletRequest>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.WalletRequest>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #9
0
        // this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.IsEnabledApiCall objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.IsEnabledApiCall>(x => x.isenableid), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.IsEnabledApiCall>(x => x.enabletext), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.IsEnabledApiCall>(x => x.Isenabled), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.IsEnabledApiCall>(x => x.ipaddress), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.IsEnabledApiCall>(x => x.SystemDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.IsEnabledApiCall>(x => x.CreatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.IsEnabledApiCall>(x => x.CreatedDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.IsEnabledApiCall>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.IsEnabledApiCall>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #10
0
        // this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.UserDeviceToken objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.UserDeviceToken>(x => x.udt_id), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.UserDeviceToken>(x => x.udt_userid), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.UserDeviceToken>(x => x.udt_imei), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.UserDeviceToken>(x => x.udt_devicetoken), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.UserDeviceToken>(x => x.SystemDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.UserDeviceToken>(x => x.CreatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.UserDeviceToken>(x => x.CreatedDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.UserDeviceToken>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.UserDeviceToken>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #11
0
        // this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.DMT_BeneficiaryRegister objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_beneficiaryid), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.userid), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_beneficiaryname), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_beneficiarymobile), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_customerid), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_bankname), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_ifsc), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_accountnumber), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_branchname), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_address), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_addharcard), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_status), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_Ipaddress), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_requestno), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_response), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.dmt_pincode), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.SystemDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.CreatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.CreatedDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_BeneficiaryRegister>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #12
0
        // this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.Recharge objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.rechargeid), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.countrycode), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.operatorcode), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.numbertorecharge), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.amount), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.readstatus), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.txid), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.commimd), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.commisd), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.commir), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.commia), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.charge), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.userid), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.beforebalance), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.balance), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.status), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.reqtype), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.reqvia), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.proccessdate), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.rechargemethod), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.routeid), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.webusername), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.requestid), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.accountref), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.optionalparam), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.optionalparam1), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.ipaddress), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.SystemDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.CreatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.CreatedDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.Recharge>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #13
0
        public bool UpdateStatus(Guid PrimarKey, COM.MyEnumration.MyStatus Status)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.UserProfile>(x => x.up_id), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.UserProfile>(x => x.Status), false);
                Entity.up_id  = PrimarKey;
                Entity.Status = Status;
                if (objDAL.SaveChanges(dctFields, Entity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #14
0
        public bool UpdateStatus(ENT.DMT_CustomerRegister objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_CustomerRegister>(x => x.dmt_customerid), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_CustomerRegister>(x => x.dmt_status), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_CustomerRegister>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_CustomerRegister>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
コード例 #15
0
        // this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.DMT_MoneyRemittance objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_id), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.userid), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_customermobile), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_BeneficiryMobile), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_accountnumber), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_ifsc), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_beneficiarycode), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_amount), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_routingtype), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_BeneficiaryName), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_remarks), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_mode), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_entrydate), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_charge), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_beforebal), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_balance), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_totalamount), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_Ipaddress), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_RequestNo), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_Response), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.mt_RemitterId), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.Status), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.SystemDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.CreatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.CreatedDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.DMT_MoneyRemittance>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }