L
o
a
d
i
n
g
.
.
.

Tutorials




 


In this tutorial, you are going to learn one of the ways to install the Entity Framework into your project.

 


Many Entity Framework tutorials are going to need a sample database. Therefore, this tutorial was created to help you with the steps to create a database inside of SQL Server, using the SQL Server Management Studio tool.

 


In this tutorial, you are going to learn how to create an Entity Framework data model from an existing database. You are going to use the “EF Designer from database” option from the Entity Data Model wizard.

 


In this tutorial, you are going to create an Entity Framework data model from scratch. You will not create the data model based on an existing database. At the end, you will generate the SQL Server database from the model that you designed.

 


In this tutorial, you are going to create a project that is going to use the DbContext and DbSet classes to define the data model through code. Then later, you will generate the SQL Server database from the code that you implemented.

 


In this tutorial, you are going to learn how to use Data Annotations attributes to define the primary key and foreign key of your entities. You will also learn how to add migration code to handle the scenario where the schema of your data model changes, after the database has already been created.

 


In this tutorial, you are going to learn how to configure your entities using Data Annotations attributes. You are going to use the [Table()] and [Column()] attributes to define different names for tables and their columns. You are going to make fields required and have a maximum length using the [MaxLength()] and [Required] data annotations attributes. Finally, you will learn how to add migration code by overriding the OnModelCreating method and creating a class that derives from the EntityTypeConfiguration class.

 


In this tutorial, you are going to learn how to generate the entire Code First implementation based on an existing database. You can generate the DbContext and entity classes, from an existing database, by using the “Reverse Engineer Code First” feature of the EF Power Tools.

 


In this tutorial, we will learn how to use the new way to integrate the Entity Framework into an ASP.NET 5 MVC 6 project. As you probably know by now, ASP.NET 5 introduces the concept of dependency injection as its main way to insert services. Entity Framework will be inserted into our project using Dependency Injection.

 


Database Administrators usually utilize the Sql Server Management Studio to create and connect to a database to define tables, insert, update and delete records. Developers do not have to use the same tool. We can use the Server Explorer panel in Visual Studio.