An example of how you can combine MediatR and Record types to build an api in the CQRS pattern with relatively minimal code.
If you like or are using this project to learn or start your solution, please give it a star. Thanks!
- Download and install the .NET Core SDK
- If you don't have
localdb
available on your system, Download and install SQL Server Express
- If you don't have
- Open a terminal such as PowerShell, Command Prompt, or bash and navigate to the
src/MediatRAndRecordTypes.Api
folder - Run the following
dotnet
commands:
dotnet build
dotnet run
- Open your browser to:
https://localhost:5001
.
- Download and install the .NET Core SDK
- If you don't have
localdb
available on your system, Download and install SQL Server Express
- If you don't have
- Open a terminal such as PowerShell, Command Prompt, or bash and run the following command:
dotnet test