Yesterday I committed a preview of LINQ to SQL branch of CQRS version of DDDSample. As you might guess, I replaced NHibernate in reporting subsystem with L2S. Why? Because I wanted to show that reporting is simple in terms of data access and doesn’t need such a sophisticated framework as NHibernate.

I must confess that I am not very proficient in L2S so the implementation might not be optimal. My goal is to just make it working.

For now L2S version is only available through source code download. I encourage all of you to take a look at the implementation. It is quite simple, yet I think it shows the power of CQRS.

If you think about implementing a production system using DDD/CQRS approach, there is one additional think worth noticing. Thanks to the separation of command and query handling you can assign less experienced developers (or ones more focused on UI then on modeling) to query side. They probably can handle implementing it using such a simple tool like LINQ to SQL. In the same time you can assign your senior staff to command processing. This is where business logic is implemented and where good coding and modeling skills bring most value.

VN:F [1.8.7_1070]
Rating: 3.0/5 (2 votes cast)
LINQ 2 SQL in DDDSample3.052