Get data on the basis of conditions in entity framework 3.5 with include -


I am using Entity Framework 3.5 for my application.

I need load data based on some condition

  var data = reference from e.employee.Include ("Employee. Projects") where e.IsActive E Choose;  

Using this, I will get all the employees who are active with their project details. But I only want to load those projects which are active. So, how to load only active projects using the query?

Thanks Ashwini

No conditional version is included. Take a look at these links and hope they will help.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -