Skip to content
Discussion options

You must be logged in to vote

Below are the steps I use when creating a new entity. For details on each step, look in the exiting BlazorHero files.

Adding new Entity

  1. Create and define the new Entity class file in Domain\Entities folder .
  2. Edit file Infrastructure\Contexts\BlazorHeroContext.cs to add DbSet<> prop and define the entity props in OnModelCreating() function if required.
  3. Edit Shared\Constants\Permission\Permissions.cs to add new static class of the new entity containing the permission constants.
  4. Edit Shared\Constants\Application\ApplicationContants.cs to add the new entity cachekey constant.

API for the new Entity

  1. Create a new FilterSpecification class file in Application\Specifications folder.
  2. Create a n…

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@MilesGibson
Comment options

@ajakblackgoat
Comment options

Answer selected by MilesGibson
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants