How to adapt CQRS to projects? [closed]

心已入冬 提交于 2019-12-04 07:47:10

问题


I came across a new term named CQRS (Command Query Responsibility Segregation) which states that the conceptual model should be split into command model and query model as a typical CRUD model in which the command and query happens in the same model. The article has all theory information.

I don't understand how I should implement this in a project with ASP.net MVC3, EF 4.3 and jQuery.

Can anybody suggest me how to practically implement it in my project?


回答1:


CQRS Journey is a good place to start. I also suggest you watch A Journey into CQRS on Channel9.

Anyway, the best thing to learn CQRS is to try it by yourself. For me, I have to learn how to adapt it to my projects for around 6 months.




回答2:


This article has a detailed explanation. introduction to cqrs




回答3:


Here you can find sample code for asp.net mvc with cqrs. CQRS with MVC. Find more video here CQRS with ASP.NET MVC - A Year On




回答4:


I want to point out the classic example from Greg Young himself: Simple CQRS example




回答5:


Take a look at Its.CQRS: https://github.com/jonsequitur/Its.Cqrs which is being used in production at Microsoft.



来源:https://stackoverflow.com/questions/12851479/how-to-adapt-cqrs-to-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!