stavroskasidis / BlazorWithIdentity

A project template for a blazor hosted app using cookie based authentication with ef core identity.
MIT License
458 stars 106 forks source link

Simple CRUD? #21

Open rogueyoshi opened 3 years ago

rogueyoshi commented 3 years ago

What's the best practice for adding simple CRUD to this? Is the dbContext reusable for storing data other than the auth related stuff, or should it be done entirely separately?

stavroskasidis commented 3 years ago

Yes, of course it is. Just add some DbSet properties to the dbcontext and then add a migration. It just already contains some default user tables for Identity.

rogueyoshi commented 3 years ago

Yes, of course it is. Just add some DbSet properties to the dbcontext and then add a migration. It just already contains some default user tables for Identity.

Thank you! It looks like API scaffolding will even do some of that lifting.