You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Object initializers automatically break when they have more than two properties.
varx=new Thing
{Post=post,Blog=blog,Some=count};
Query syntax should do the same for the select new in this block
varresult=await(frompostin dbContext.Posts
join blog in dbContext.Blogs on post.BlogId equals blog.Id
let count = dbContext.Posts.Count(p => p.Name == post.Name)where post.Id ==1selectnew{ Post = post, Blog = blog, SamePostNameCount = count }).AsNoTracking().FirstAsync();
The text was updated successfully, but these errors were encountered:
belav
changed the title
Break query select statements similar to object initializers.
Break anonymous object creation when there are more than two properties
Nov 11, 2022
Object initializers automatically break when they have more than two properties.
Query syntax should do the same for the
select new
in this blockThe text was updated successfully, but these errors were encountered: