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?
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 :-)