LINQ to Entities generating incorrect SQL
This is the kind of query that EF generates when it knows for sure that the query won’t return any results. Such a query minimizes database processing. How can EF be so sure? This can only be when for all it knows UserId in the database is not nullable. This, in turn, can only be … Read more