Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
Series
2 posts found
#migrations
Database
PART 08
Seeding in EF Core: Model Seeding with HasData and Application-Side Seeding
Two ways to add initial data in EF Core: model seeding with HasData and the InsertData/UpdateData/DeleteData it generates, the key and navigation rules, the dynamic value trap; then a rerunnable application-side seeder and a pointer to EF Core 9's UseSeeding.
5 Nov 2026
12 min
2
Database
PART 07
EF Core Migrations: migrations add, database update, Scripts and Bundles
We run EF Core migrations end to end: migrations add/remove, database update and reverting, the anatomy of a migration file, SQL scripts and --idempotent, EF Core 6 migration bundles, and the risks of calling Migrate() at startup.
5 Nov 2026
10 min
2