In this chapter, we will work through the creation of a brand new project that uses Entity Framework. We will create classes that map to tables in the target database. We will then insert a row into that table using the Entity Framework API. We will also query this using LINQ. Next, we will update and delete our test data. Finally, we will take a look at how to handle schema changes.
In this chapter, we will cover the following topics:
Creating a new project using Entity Framework
Adding the necessary references to be able to write Entity Framework code
Creating a new database based on written classes
Saving a new record
Querying the saved data
Deleting and updating the data in the database
An introduction to schema changes