score:10

When using LINQ to Entities the LINQ expression is converted to a SQL query to be sent to the database. This is so that the whole table is not pulled into memory.

Your problem is that because Active is not mapped the database knows nothing about it and therefore cannot make the calculation.

You will either need to move Active into your DB or change the LINQ statement to only query on columns that are in your DB


Related Query

More Query from same tag