Patrick

My feedback

  1. 3 votes
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)

      We’ll send you updates on this idea

      Patrick shared this idea  · 
    • 865 votes
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)

        We’ll send you updates on this idea

        Patrick supported this idea  · 
        Patrick commented  · 

        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();

      • 117 votes
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          Signed in as (Sign out)

          We’ll send you updates on this idea

          Patrick supported this idea  · 
        • 33 votes
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            Signed in as (Sign out)

            We’ll send you updates on this idea

            Patrick supported this idea  · 

          Feedback and Knowledge Base