Patrick
My feedback
-
3 votes0 comments · [Closed] Entity Framework Core Feature Suggestions · Flag idea as inappropriate… · Admin →
Patrick shared this idea ·
-
865 votes25 comments · [Closed] Entity Framework Core Feature Suggestions · Flag idea as inappropriate… · Admin →
Issue tracking this feature: https://github.com/aspnet/EntityFramework/issues/1833.
Patrick supported this idea ·
-
117 votes4 comments · [Closed] Entity Framework Core Feature Suggestions · Flag idea as inappropriate… · Admin →
Patrick supported this idea ·
-
33 votes7 comments · [Closed] Entity Framework Core Feature Suggestions · Flag idea as inappropriate… · Admin →
Patrick supported this idea ·
We should be able to specify what we want to include inside the include statement. This way, if we have a lot of information, we will not have a performance hit.
For example:
var blogs1 = context.Blogs
.Include(b => b.Posts)
.ToList();
This is fine, but imagine you have a LOT of posts. If you want to have only Posts from today, why not having something to filter it down directly from the SQL.
var blogs1 = context.Blogs
.Include(b => b.Posts, d=>d.Date>=DateTime.Now)
.ToList();