Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

scaffold db ef core

Scaffold-DbContext "Server=(localdb)mssqllocaldb;Database=DatabaseName;Trusted_Connection=True;"  
     -Provider Microsoft.EntityFrameworkCore.SqlServer 
     -OutputDir Models -Context NorthwndContext 
     -Tables Products,Categories,Suppliers -Force
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scaffold #db #ef #core
ADD COMMENT
Topic
Name
9+5 =