You use include when you want the data for a related table to be included. So for example you were using the entity framework to pull a table from the northwind database. If you were querying the orders table you would need to use include to get the orderdetails loaded
when the data is gotten from the database instead of when you use it.
Ken Tucker
All-Star
16797 Points
2608 Posts
MVP
Re: how to select many tables on anonymous query
Apr 24, 2012 08:09 PM|LINK
You use include when you want the data for a related table to be included. So for example you were using the entity framework to pull a table from the northwind database. If you were querying the orders table you would need to use include to get the orderdetails loaded when the data is gotten from the database instead of when you use it.
Space Coast .Net User Group