Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return from b in _datacontext.MemberBlogs
- let cats = GetBlogCategories(b.MemberBlogID)
- select new MemberBlogs
- {
- MemberBlogID = b.MemberBlogID,
- MemberID = b.MemberID,
- BlogTitle = b.BlogTitle,
- BlogURL = b.BlogURL,
- BlogUsername = b.BlogUsername,
- BlogPassword = b.BlogPassword,
- Categories = new LazyList<MemberBlogCategories>(cats)
- };
- (from x select new MemberBlogs).ToList()
- [OnSerializing]
- private void ExecuteLinqQuery(StreamingContext context)
- {
- if (!SomethingThatIndicatesThisLinqQueryHasNotBeenExecuted)
- LinqVariable.ToList()
- }
Add Comment
Please, Sign In to add comment