fullstackhero / dotnet-starter-kit

Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
https://fullstackhero.net/dotnet-webapi-boilerplate/
MIT License
5.19k stars 1.56k forks source link

Seeding Table Default Values #190

Closed Maedhr0s closed 2 years ago

Maedhr0s commented 2 years ago

Seeding of reference table default values during initialization process or when the reference table is empty. It would be nice if we can seed the data from json file for flexibility.

iammukeshm commented 2 years ago

image

Please review this Commit - https://github.com/fullstackhero/dotnet-webapi-boilerplate/commit/a9964337ffdbf2ce8e1843d154c90fd627150907

There is a scope to refactor this code. But I will keep it aside for another day. Do check it and let me know if it works for you. I have added Brand seeding as an example.