How to create ef in .net core.
How to create entity in dotnet core
Install Packages
First of all, you need install the packages that needed to create the entitys through the nuget package manager.
- Microsoft.EntityFrameworkCore
- Microsoft.EntityFrameworkCore.Tools
- Microsoft.EntityFrameworkCore.Design
- Microsoft.EntityFrameworkCore.Relational
- Pomelo.EntityFrameworkCore.MySql
Create Entity
Then you can create entitys with the following command at the console.
For Mysql:
|
|
For Sql:
|
|