ASP NET Core How to Seed Data at Design Time & Run Time by DbContext AppliedK

Описание к видео ASP NET Core How to Seed Data at Design Time & Run Time by DbContext AppliedK

This video explains about how to Seed Data at Design Time & Run Time by DbContext in ASP.NET Core. The application uses bare components to explain it in simple way without distracting the audience from unnecessary components. No Controller is used. The application uses two model classes Company and Employee plus Entity Framework core packages to create database, its tables and shows how to seed the tables with design time records.
It also very clearly explains the Difference between Design Time & Run Time DbContext.

STEPS TO CREATE APP:
• Create ASP.NET Core application using ASP.NET Core Empty template.
• Configure appsettings.json file for connection string.
• Create Company and Employee model classes which will be used to create tables in database.
• Install required Entity Framework Core packages.
• Create AppDbContext class which derives from DbContext class. The DbContext belongs to EF Core package.
• Create DesignTimeAppDbContext class which implements IDesignTimeDbContextFactory
• Create SeedCompany and SeedEmployee classes
See complete video to understand further steps and concepts.

Read technical posts at my blogger:
https://www.appliedk.blogspot.com

#appliedk #api #webapi #program #programming #web #technology #asp.net #asp.netcore #core #webseries #webtechnology #vba #visualbasic #excel #msexcel #microsoft #tips #tricks #obs #msaccess #sql #sqlserver #visualstudio #visualstudiocode #efcore #entityframework ##entityframeworkcore #graphql #msword #word #powerpoint #history #economics

Комментарии

Информация по комментариям в разработке