Step 2. Create the new repository class file under the Infra project. The new repository class file name sets “GenericTypeRepository.” The GenericTypeRepository class must inherit the IGenericTypeRepository interface class’s method. It also does the same as the thing that marks the note above the method name position.
Note: If you want to see the complete source code about the new interface class file, please, click my GitHub repository.
Step 3. Create new controller files under the web project’s Controller folder. The controller file name sets “GenericTypeController.” Create view files under the web project’s Views folder.
Note: If you want to see the complete source code about the new interface class file, please, click my GitHub repository.
The single-responsibility principle (SRP) is a computer-programming principle that states that every module, class or…
Command query responsibility segregation (CQRS) generalizes CQS to message-driven and event-driven architectures: it applies the CQS…
Domain-driven design (DDD) is a software design approach focusing on modelling software to match a…
A microservice architecture – a variant of the service-oriented architecture (SOA) structural style – arranges…
The Repository pattern and Unit of Work pattern are used together in most time. Unit…
Visitor – It allows the program changes the algorithm and the operations that base on the visitor…