partial void DeleteForumNewsPost(ForumNewsPost instance);
partial void InsertForumNewsPost(ForumNewsPost instance);
partial void UpdateForumNewsPost(ForumNewsPost instance);
private void PostNews(string text, string bbuid, DateTime lastDay) { ForumNewsPost post = Global.Db.ForumNewsPosts.Where(x => x.Day == lastDay).SingleOrDefault(); if (post == null) { post = new ForumNewsPost(); post.Day = lastDay; Global.Db.ForumNewsPosts.InsertOnSubmit(post); } post.ForumPostID = PostOrEdit(text, bbuid, post.ForumPostID, TopicIdNews, "Daily news " + lastDay); Global.Db.SubmitChanges(); }