public int InsertCustomerStayHis(CustomerStayHisModel mHis) { try { CUSTOMER_STAY_HIS cth = new CUSTOMER_STAY_HIS(); cth.CREATE_DATE = GetDBTime; cth.CREATE_USERID = mHis.CommonInfo.CreateUserId; cth.STAY_TYPE = mHis.StayType; cth.STAY_ID = mHis.StayId; cth.CUSTOMER_ID = mHis.CustomerId; cth.HIS_STATUS = mHis.HisStatus; cth.UPDATE_DATE = GetDBTime; cth.UPDATE_USERID = cth.CREATE_USERID; cth.START_TIME = mHis.CommonInfo.StartDate; cth.END_TIME = mHis.CommonInfo.EndDate; dc.CUSTOMER_STAY_HIS.InsertOnSubmit(cth); dc.SubmitChanges(); return cth.HIS_ID; } catch (Exception err) { throw err; } }
partial void UpdateCUSTOMER_STAY_HIS(CUSTOMER_STAY_HIS instance);
partial void DeleteCUSTOMER_STAY_HIS(CUSTOMER_STAY_HIS instance);
partial void InsertCUSTOMER_STAY_HIS(CUSTOMER_STAY_HIS instance);