public BoardPost GetPostByID(Int64 PostID) { BoardPost result = null; using(FisharooDataContext dc = _conn.GetContext()) { BoardPost post = dc.BoardPosts.Include("Account").Where(p => p.PostID == PostID).FirstOrDefault(); result = post; result.Account = post.Account; } return result; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)