Simply put, how can I do something like:
Select all Departments together with 2 of its latest Staff.
I don’t need all staff loaded, just 2.
Note: I need lazyloading enabled so that staffdetails is still accessible if needed.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
EF doesn’t allow filtering / ordering or limiting number of returned records on navigation property in eager loading. You must use projection to anonymous type or custom type: