Command Query Separation for .NET Framework and .NET Standard; 🌐ASP.NET Web API 2, 🌐ASP.NET Core, ⚑AWS Lambda, ⚑Azure Functions
Switch branches/tags
Nothing to show
Clone or download
Latest commit a38d7f9 Sep 27, 2018
Permalink
Failed to load latest commit information.
sample clean Sep 23, 2018
src changed gear Sep 27, 2018
test/CommandQuery.Specs clean DI Sep 22, 2018
.gitattributes ✨ New project Aug 28, 2016
.gitignore Ignore publish profiles Jan 6, 2018
CommandQuery.AWSLambda.md πŸ“š READMEs Sep 23, 2018
CommandQuery.AspNet.WebApi.md πŸ“š READMEs Sep 23, 2018
CommandQuery.AspNetCore.md πŸ“š READMEs Sep 23, 2018
CommandQuery.AzureFunctions.md πŸ“š READMEs Sep 23, 2018
CommandQuery.md changed gear Sep 27, 2018
CommandQuery.sln πŸŽ‰ CommandQuery.DependencyInjection Sep 22, 2018
README.md πŸ“– README Sep 19, 2018
appveyor.yml πŸ”– 0.7.0 Sep 22, 2018
icon.pdn πŸ’„ Icon Aug 28, 2016
icon.png πŸ’„ Icon Aug 28, 2016
nuget-local.bat nuget script Sep 22, 2018
pack.bat Add pack script Jan 3, 2018
test.bat Add sample specs to batch file May 16, 2018
vs-aws-serverless-application-empty.png πŸ“š READMEs Sep 23, 2018
vs-azure-functions-v1-run.png πŸ“š README Jan 3, 2018
vs-azure-functions-v1.png πŸ“š README Jan 3, 2018
vs-azure-functions-v2-run.png πŸ“š README Jan 3, 2018
vs-azure-functions-v2.png πŸ“š README Jan 3, 2018
vs-new-project-aws-serverless-application.png πŸ“š READMEs Sep 23, 2018
vs-new-project-azure-functions.png πŸ“š README Jan 3, 2018
vscode-azure-functions-templates-1.png πŸ“š README May 4, 2018
vscode-azure-functions-templates-2.png πŸ“š README May 4, 2018
vscode-azure-functions.png Update screenshot May 16, 2018

README.md

CommandQuery

Build Status NuGet

Introduction

Command Query Separation (CQS) for .NET Framework and .NET Standard

  • Build services that separate the responsibility of commands and queries
  • Focus on implementing the handlers for commands and queries
  • Create APIs with less boilerplate code

Available for:

🌐 ASP.NET Web API 2
🌐 ASP.NET Core
⚑ AWS Lambda
⚑ Azure Functions

Command Query Separation?

Queries: Return a result and do not change the observable state of the system (are free of side effects).

Commands: Change the state of a system but do not return a value.

β€” Martin Fowler

In other words:

  • Commands
    • Writes (Create, Update, Delete) data
  • Queries
    • Reads and returns data

Inspired by:

Packages

README Platform NuGet Sample
CommandQuery .NET Framework and .NET Standard NuGet NuGet CommandQuery.Sample
CommandQuery.AspNet.WebApi ASP.NET Web API 2 NuGet NuGet CommandQuery.Sample.AspNet.WebApi
CommandQuery.AspNetCore ASP.NET Core NuGet NuGet CommandQuery.Sample.AspNetCore
CommandQuery.AWSLambda AWS Lambda NuGet NuGet CommandQuery.Sample.AWSLambda
CommandQuery.AzureFunctions Azure Functions NuGet NuGet Vs1, Vs2, VsCode1, VsCode2