Entity Framework Core
Introduction
Entity framework core is the new version of Entity framework .It is an Object Relational Mapping framework .In olden days we were using ADO.Net to connect database from backend. We can use it even now also. However Entity framework has some advance features to connect ,access and store data from various databases.Entity framework is the enhancement of ado.net .
Types of Entity Framework Core
Entity framework core has 2 approaches .They are
1.Code first
2.Database first
1.Code first
In this approach database and tables are created EF Core.
2.Database first
In this approach domain and contexts are created EF Core from the existing database.
Parts of Entity Framework Core
Parts of Entity Framework Core
DbContext Class
The dbcontext class is a c# class ,it provides the entry point into the database.
ConnectionString Registration
Connectionstring of the dbContext is registered with services in the startup class.It can be
done using Onmodelcreating method of dbContext class as well.
ConnectionString Registration
Connectionstring of the dbContext is registered with services in the startup class.It can be
done using Onmodelcreating method of dbContext class as well.
Comments
Post a Comment