Scaffold-DbContext MySql code example
Example 1: scaffold mysql database
Scaffold-DbContext "server=(ip address);user=(username);password=(Password);database=(database name)" "Pomelo.EntityFrameworkCore.MySql" -OutputDir (folder name) -f
Example 2: scaffold-dbcontext sql server
PM> Scaffold-DbContext "Server=.\SQLExpress;Database=SchoolDB;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models