Codeo.CQRS
2.0.2-2401300843.6cf7ae8
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 4.6.2
This package targets .NET Framework 4.6.2. The package is compatible with this framework or higher.
This is a prerelease version of Codeo.CQRS.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Codeo.CQRS --version 2.0.2-2401300843.6cf7ae8
NuGet\Install-Package Codeo.CQRS -Version 2.0.2-2401300843.6cf7ae8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Codeo.CQRS" Version="2.0.2-2401300843.6cf7ae8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Codeo.CQRS --version 2.0.2-2401300843.6cf7ae8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Codeo.CQRS, 2.0.2-2401300843.6cf7ae8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Codeo.CQRS as a Cake Addin #addin nuget:?package=Codeo.CQRS&version=2.0.2-2401300843.6cf7ae8&prerelease // Install Codeo.CQRS as a Cake Tool #tool nuget:?package=Codeo.CQRS&version=2.0.2-2401300843.6cf7ae8&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Codeo.CQRS
What is it?
CQRS is a pattern for handling data: the Command Query Responsibility Separation. see: Wikipedia
Definitions
- Command: unit of work which writes to one or more data sources (may also read from one or more data sources)
- Query: unit of work which reads from one or more data sources (should not write to any, except logging, if necessary)
- Executor: logical construct which executes one or more commands and or queries
Usage
- Define commands and / or queries by defining new classes which derive from
Command<T>
orQuery<T>
- You must override the
Execute
method in your derived class. The logic within there must, if possible, set theResult
property on the command or query it belongs to - You may override the
Validate
method in your derived class. Command/Query executors will run this logic before attempting toExecute
. Any exception thrown within theValidate
method will prevent command / query execution. - Execute commands with an instance of
CommandExecutor
. Execute queries with an instance ofQueryExecutor
- You must configure the behavior of Codeo.CQRS with
Fluently.Configure()
- You must at least specify a connection factory with
WithConnectionProvider
- You may register Sql mappings via the
WithEntitiesFrom
method, though this is optional: unknown entity types will be registered on fist use - You may register exception handlers via the
WithExceptionHandler
method- if your exception handler is invoked and does not throw, the default value for the queried type is returned
- if your exception handler throws, that exception bubbles up
- if there is no exception handler for the type of exception which is caught by an executor, it bubbles up
- You must at least specify a connection factory with
See TestQueryExecution.cs for examples
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.2
- Dapper (>= 2.1.21)
- Newtonsoft.Json (>= 13.0.3)
- System.Runtime.Caching (>= 8.0.0)
- System.ValueTuple (>= 4.5.0)
-
.NETStandard 2.0
- Dapper (>= 2.1.21)
- Newtonsoft.Json (>= 13.0.3)
- System.Runtime.Caching (>= 8.0.0)
- System.ValueTuple (>= 4.5.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Codeo.CQRS:
Package | Downloads |
---|---|
Codeo.CQRS.Testability
Package Description |
|
Codeo.CQRS.MySql
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.1.1-2405131632.de93f97 | 58 | 5/13/2024 |
2.0.2-2401300909.d88d96f | 83 | 1/30/2024 |
2.0.2-2401300900.34b68ae | 56 | 1/30/2024 |
2.0.2-2401300843.6cf7ae8 | 56 | 1/30/2024 |
2.0.2-2401251650.6cf7ae8 | 62 | 1/25/2024 |
2.0.2-2401251211.9248f56 | 55 | 1/25/2024 |
2.0.2-2401241329.7f6eeb8 | 57 | 1/24/2024 |
2.0.2-2401221540.eb57813 | 63 | 1/22/2024 |
2.0.1-2401121158.cc4a0cd | 74 | 1/12/2024 |
2.0.0 | 132 | 1/12/2024 |
1.2.0 | 374 | 1/22/2021 |