In this tutorial let us look into how to load the Related data. In the last tutorials so far we learned how to retrieve the data from the single table. In the tutorial let us look how to retrieve the data from the multiple related table.
Finding the Single Entity Loading Related Data Projection queries in Entity Framework are used to create a query that selects from a set of entities in your model, but returns results that are of a different type. This tutorial uses the AdventureWorks database. You can refer to the Code First using the existing database tutorial […]
Querying in LINQ to Entities Projection Queries LINQ to Entities always returns a collection of objects. But we also need to return a single result from the database. The LINQ to Entities has Find, Single, SingleOrDefault, First, FirstOrDefault methods which can be used retrieve the single record from the database. In our last tutorial Querying […]
LINQ to Entities Tutorial Finding Single Entity Database Queries in Entity Framework are written using LINQ to Entities. In our LINQ to Entities Tutorial, we introduced you to LINQ to Entities. We showed you to how to write a simple LINQ to Entities Query using both Query and Method syntax. In this lesson let us explore […]
LINQ to Entities Tutorial in simple and easy steps. Learn to Query, Add, update.delete records from the database using LINQ to entities in entity framwork