public ActionResult AddContentRelation(ContentRelation contentRelation) { DBNLDataContext db = new DBNLDataContext(); db.ContentRelations.InsertOnSubmit(contentRelation); db.SubmitChanges(); return RedirectToAction("ListContentRelations"); }
private void detach_ContentRelations1(ContentRelation entity) { this.SendPropertyChanging(); entity.Content1 = null; }
private void attach_ContentRelations(ContentRelation entity) { this.SendPropertyChanging(); entity.Content = this; }
partial void DeleteContentRelation(ContentRelation instance);
partial void UpdateContentRelation(ContentRelation instance);
partial void InsertContentRelation(ContentRelation instance);