public static void AddPoem2(M_Poem2 poem) { using (PoemDBDataContext context = new PoemDBDataContext(CurrentConnection)) { context.M_Poem2.InsertOnSubmit(poem); context.SubmitChanges(); } }
public PoemItem(M_Poem2 poem) { this.ID = poem.ID; this.SubID = poem.SubID; this.Title = poem.Title; this.Author = poem.Author; this.Dynasty = poem.Dynasty; this.Body = poem.MainBody; this.TitleNode = poem.TitleNote; this.Footer = poem.Footer; this.Comment = poem.Comment; }