Skip to content
Advertisement

How many SQL Queries will be executed in the database through this EF

I have the following and want to know how many queries will be executed in the DB through this EF?

}

Advertisement

Answer

It will be one query, after you’ve solved the compiler error:

If you want to fetch items with their sub-items, like Schools with their Students, Customers with their Orders, or Profiles with their Purchases, consider a GroupJoin instead of a Join followed by a GroupBy. The nice thing is that you will also get the Profiles that have no Purchases:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement