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.
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
A DbSet represents an entity set. An entity set is defined as a set of entities of the same entity type. In this tutorial let us explore the DBSet in Detail