This project is read-only.

Project Description
Tiny Library CQRS is a small demonstration project which demonstrates the concept of Domain Driven Design and the CQRS architecture pattern. This project relies on the Apworks DDD framework, which is already included in the source package.


Tiny Library CQRS requires the following components to run properly:

  • Microsoft .NET Framework 3.5 SP1
  • Microsoft Patterns&Practices Enterprise Library 5.0 (April 2010)
  • Microsoft SQL Express 2008
  • Microsoft Visual Studio 2010 (It is required when opening the source solution)
  • Microsoft ASP.NET MVC
  • Apworks DDD framework (,, the framework now is at its Alpha version (Version number: 1.0.4016.23016). Please download and install the installation package of this version from

IMPORTANT: Note that the Apworks DDD framework is still at its Alpha version, currently please DO NOT use this framework in your production envrionment since it might lead to unpredictable issues. For the latest information about the apworks framework, please refer to or



Please follow the steps below to setup the environment after you have installed the prerequisites above:

  • Open Microsoft Visual Studio 2010
  • Open the Server Explorer
  • Right click on Data Connections, and select Create New SQL Server Database option
  • In the Create New SQL Server Database dialog box, type .\SQLEXPRESS as the Server name, then in the New database name field, type TinyLibraryEventDB
  • Use the same approach indicated above to create another database, named TinyLibraryQueryDB
  • In Microsoft Visual Studio 2010, open the TinyLibraryCQRS solution
  • If you have installed the Apworks Application Development Framework to C:\Program Files\Apworks directory, then nothing needs to be changed. Otherwise, please re-add the reference to Apworks DLLs for each project under the solution
  • Under Additions folder, run TinyLibraryEventDB.sql and TinyLibraryQueryDB.sql scripts sequentially
  • Build entire solution
  • In Solution Explorer, right click TinyLibrary.Services.CommandService.svc file, select View in Browser, this will start an ASP.NET Development Server with the port 1421
  • Set TinyLibrary.WebApp project as the startup project and press CTRL+F5 to run the application


Running the Application

After successfully started the application, you will be able to see the following screen:


To Logon, use Username: daxnet / Password: 123456 as the account.


If you are interested in Tiny Library CQRS and the Apworks DDD framework, please click here to donate. Thank you for your support!

Last edited Dec 30, 2010 at 5:45 AM by acqy, version 4