Entity Framework (EF) is an object-relational mapper that enables .NET developers to work with relational data using domain-specific objects. It eliminates the need for most of the data-access code that developers usually need to write.
- Develop without ever having to open a designer or define an XML mapping file
- Define your model objects by simply writing "plain old classes" with no base classes required
- Use a "convention over configuration" approach that enables database persistence without explicitly configuring anything
- Optionally override the convention-based persistence and use a fluent code API to fully customize the persistence mapping
Run the following command in the Package Manager Console to migrate the model to the database
update-database -targetmigration:"0" -force -verbose add-migration Initial update-database -verbose
Code First Insert/Update/Delete Stored Procedures