public bool Insert_Posted(int id) { bool result = false; try { mmoDataContext db = new mmoDataContext(); Posting post = new Posting { ImgId = id, SourceId = 6 }; db.Postings.InsertOnSubmit(post); db.SubmitChanges(); result = true; } catch (Exception ex) { } return(result); }
private void detach_Postings(Posting entity) { this.SendPropertyChanging(); entity.Source = null; }
private void attach_Postings(Posting entity) { this.SendPropertyChanging(); entity.Source = this; }
partial void DeletePosting(Posting instance);
partial void UpdatePosting(Posting instance);
partial void InsertPosting(Posting instance);
private void detach_Postings(Posting entity) { this.SendPropertyChanging(); entity.Pinterest = null; }
private void attach_Postings(Posting entity) { this.SendPropertyChanging(); entity.Pinterest = this; }