Code for Create Model in Models folder in Project as same as in Database table.
Scaffold-DbContext "Data Source=DESKTOP-L20DF1I\RAMUDB;Initial Catalog=EventDatabase;Integrated Security=True; user id=sa;Password=********" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
0 comments:
Post a Comment