partial void DeleteProcurer(Procurer instance);
partial void UpdateProcurer(Procurer instance);
public int AddProcurer(Procurer procurer) { if (procurer == null) { throw new ArgumentNullException("procurer"); } dc.Procurers.InsertOnSubmit(procurer); dc.SubmitChanges(); return procurer.Procurer_ID; }
partial void InsertProcurer(Procurer instance);
public bool SaveProcurer(Procurer procurer) { if (procurer == null) { throw new ArgumentNullException("procurer"); } var old = GetProcurer(procurer.Procurer_ID); old = procurer; dc.SubmitChanges(); return true; }