In this chapter, we saw now the Entity Framework can be used to create a data model that lets us work with a database using C# data types and LINQ queries. Features such as navigation properties make working with the data much more like working with regular C# objects, and we don’t need to break out the SQL at any point. The Entity Framework can be used to create incredibly complex and sophisticated data models, and we have only scratched the surface with the model we used in this chapter, but even so, you can see how object-relational mapping can be performing using the Entity Framework and how LINQ to Entities can be used in place of SQL to query the underlying data.
Unable to display preview. Download preview PDF.