예제 #1
0
 /// <summary>
 /// 返回新增成功后的ID
 /// </summary>
 /// <param name="mHis"></param>
 /// <returns></returns>
 public int InsertCustomer(CustomerModel mCustomer)
 {
     try
     {
         CUSTOMER_INFO ci = new CUSTOMER_INFO();
         ci.ADDRESS = mCustomer.Address;
         ci.BIRTHDAY = mCustomer.Birthday;
         ci.COMPANY = mCustomer.Company;
         ci.CREATE_DATE = GetDBTime;
         ci.CREATE_USERID = mCustomer.CommonInfo.CreateUserId;
         ci.ID_CARD = mCustomer.IdCardNo;
         ci.NAME = mCustomer.Name;
         ci.NATION = mCustomer.Nation;
         ci.PHONE = mCustomer.Phone;
         ci.PICTURE = mCustomer.Picture;
         ci.SEX = mCustomer.Sex;
         ci.TYPE = mCustomer.Type;
         ci.UPDATE_DATE = GetDBTime;
         ci.UPDATE_USERID = mCustomer.CommonInfo.UpdateUserId;
         dc.CUSTOMER_INFO.InsertOnSubmit(ci);
         dc.SubmitChanges();
         return ci.CUSTOMER_ID;
     }
     catch (Exception err)
     {
         throw err;
     }
 }
예제 #2
0
 partial void UpdateCUSTOMER_INFO(CUSTOMER_INFO instance);
예제 #3
0
 partial void DeleteCUSTOMER_INFO(CUSTOMER_INFO instance);
예제 #4
0
 partial void InsertCUSTOMER_INFO(CUSTOMER_INFO instance);