public void AddContributor(Contributor c) { using (var ctx = new EventDbDataContext(_connString)) { ctx.Contributors.InsertOnSubmit(c); ctx.SubmitChanges(); } }
public void EditContributor(Contributor c) { using (var ctx = new EventDbDataContext(_connString)) { ctx.Contributors.Attach(c); ctx.Refresh(RefreshMode.KeepCurrentValues, c); ctx.SubmitChanges(); } }
partial void UpdateContributor(Contributor instance);
partial void DeleteContributor(Contributor instance);
partial void InsertContributor(Contributor instance);