Thursday, 8 August 2024

.Net Core with Data First approach

 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










Wednesday, 7 August 2024

.Net Core Image