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.

Home Page:https://fullstackhero.net/dotnet-webapi-boilerplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create new entity with CRUD

themhz opened this issue · comments

Hello, I am trying to create a new entity say students. I have created a new migration for it. However I need to seed some data into it and then create some requests from the api like basic CRUD. How would I go about?

commented

You can check out the code here to see how the Brand entity is seeded

src/Infrastructure/Catalog

Brand.json contains the data to seed, and BrandSeeder.cs contains the code to read the data and insert the data.

Hope that helps :-)