Install-Package Microsoft.EntityFrameworkCore.Tools
Install-Package Pomelo.EntityFrameworkCore.MySql
Scaffold-DbContext "Server=.;Port=3306;Database=netnr;uid=root;pwd=123" Pomelo.EntityFrameworkCore.MySql -Force -UseDatabaseNames -DataAnnotations -NoPluralize -NoOnConfiguring -Context ContextBase
Install-Package Microsoft.EntityFrameworkCore.SqlServer
Scaffold-DbContext "Server=.;Database=netnr;uid=sa;pwd=123" Microsoft.EntityFrameworkCore.SqlServer
Install-Package Npgsql.EntityFrameworkCore.PostgreSQL
Scaffold-DbContext "Host=localhost;Database=netnr;Username=postgres;Password=123" Npgsql.EntityFrameworkCore.PostgreSQL
-Connection <String>
-Provider <String>
-OutputDir <String>
-ContextDir <String>
-Namespace <String>
-ContextNamespace <String>
-Context <String>
-Schemas <String[]>
-Tables <String[]>
-DataAnnotations
-UseDatabaseNames
-Force
-NoOnConfiguring
-NoPluralize
https://docs.microsoft.com/en-us/ef/core/cli/powershell
https://docs.microsoft.com/zh-cn/ef/core/cli/dotnet
http://www.npgsql.org/efcore/index.html