Domain Generation Template
The domain generation template enables the generation of your Domain Objects, which will particular to your individual endpoints. This template will assist in generating Domain objects for each of the essential REST Verbs:
- Delete
- Get
- Head
- Patch
- Post
- Put
We generate domain objects per namespace because we want to ensure there is no coupling to prefer cohesion. To generate your set of Domain objects using the following terminal command
dotnet new domain -n [ your chosen name] -o src/Domain/
The -n
switch is used to define a name you would like to use The -o
switch is used to define the output directory, in most cases this will be within the Domain project.