Entity Framework .Where method chaining
They should both produce the same end result (if I’m not mistaken) but I find the the second is more readable and better shows the original intent. Update I just verified the above statement using LINQPad. Both queries will, in fact, product the same SQL. For example: context.SomeTable.Where(c => c.ParentId == null) .Where(c => c.Name.Contains(“F”)) … Read more