public bool UnitMeasureDelete(UnitMeasure unitmeasure) { return Execute<bool>(dal => { UnitMeasure unitmeasureDelete = dal.UnitMeasure.Where(x => x.UnitMeasureCode == unitmeasure.UnitMeasureCode).FirstOrDefault(); if (unitmeasureDelete != null) { dal.UnitMeasure.DeleteOnSubmit(unitmeasureDelete); dal.SubmitChanges(); return true; } return false; }); }
public bool UnitMeasureUpdate(UnitMeasure unitmeasure) { return Execute<bool>(dal => { UnitMeasure unitmeasureUpdate = dal.UnitMeasure.Where(x => x.UnitMeasureCode == unitmeasure.UnitMeasureCode).FirstOrDefault(); if (unitmeasureUpdate != null) { unitmeasureUpdate.UnitMeasureCode = unitmeasure.UnitMeasureCode; unitmeasureUpdate.Name = unitmeasure.Name; unitmeasureUpdate.ModifiedDate = unitmeasure.ModifiedDate; dal.SubmitChanges(); return true; } return false; }); }
partial void DeleteUnitMeasure(UnitMeasure instance);
partial void UpdateUnitMeasure(UnitMeasure instance);
partial void InsertUnitMeasure(UnitMeasure instance);
public void UnitMeasureUpdate(UnitMeasure unitmeasure) { adventureWorks_BC.UnitMeasureUpdate(unitmeasure); }
public void UnitMeasureAdd(UnitMeasure unitmeasure) { adventureWorks_BC.UnitMeasureAdd(unitmeasure); }