public bool PhoneNumberTypeDelete(PhoneNumberType phonenumbertype) { return Execute<bool>(dal => { PhoneNumberType phonenumbertypeDelete = dal.PhoneNumberType.Where(x => x.PhoneNumberTypeID == phonenumbertype.PhoneNumberTypeID).FirstOrDefault(); if (phonenumbertypeDelete != null) { dal.PhoneNumberType.DeleteOnSubmit(phonenumbertypeDelete); dal.SubmitChanges(); return true; } return false; }); }
public bool PhoneNumberTypeUpdate(PhoneNumberType phonenumbertype) { return Execute<bool>(dal => { PhoneNumberType phonenumbertypeUpdate = dal.PhoneNumberType.Where(x => x.PhoneNumberTypeID == phonenumbertype.PhoneNumberTypeID).FirstOrDefault(); if (phonenumbertypeUpdate != null) { phonenumbertypeUpdate.PhoneNumberTypeID=phonenumbertype.PhoneNumberTypeID; phonenumbertypeUpdate.Name=phonenumbertype.Name; phonenumbertypeUpdate.ModifiedDate=phonenumbertype.ModifiedDate; dal.SubmitChanges(); return true; } return false; }); }
partial void DeletePhoneNumberType(PhoneNumberType instance);
partial void UpdatePhoneNumberType(PhoneNumberType instance);
partial void InsertPhoneNumberType(PhoneNumberType instance);
public void PhoneNumberTypeUpdate(PhoneNumberType phonenumbertype) { adventureWorks_BC.PhoneNumberTypeUpdate(phonenumbertype); }
public void PhoneNumberTypeAdd(PhoneNumberType phonenumbertype) { adventureWorks_BC.PhoneNumberTypeAdd(phonenumbertype); }