How to Add Initial Data using Entity Framework Core: A Guide to Data Seeding

preview_player
Показать описание
This video will show you how to add initial data to your database using Entity Framework Core.

TIMESTAMPS :
00:00 Introduction
02:32 Using the DbContext
04:42 Using Manual Migration Customization
07:00 Using Custom Initialization logic
09:25 Outro

Where you can find me:

#entityframeworkcore
Рекомендации по теме
Комментарии
Автор

Thank you for your clear and concise explanation.

rrahman-hn
Автор

Thank you, for the last solution, does it only apply the seed hen the program is run? Not when you do a migration and update the db

pt_trainer
Автор

Thanks for content. I have a little complex question.
What are your thoughts on using the "Custom Initialization logic" approach for a microservice architecture?
How to avoid multiple calls to the data seed method?

PeterCargo
Автор

Thank Pat,
Great Video. I have been having trouble seeding relational data and this might be the solution. Any chance the source is available. I cannot see it on you git hub page.

chadjefferson
Автор

Which font you use for your solution items?

UsamaIsmail-rt
Автор

does this work everytime during update-database ?

TheEarthRevealed
welcome to shbcf.ru