DDD with .NET. Is there a common infrastructure library?

We are launching a web application using DDD and CQRS (using ncqrs ), and before we start writing our own infrastructure, I would like to know if any of them are available.

I think at least some basic interfaces and common implementations for writing to the file system, sending emails, etc. can be used in any project.

+4
source share
3 answers

These types of services are context sensitive enough to be insurmountable for general frameworks above the capabilities provided by the .NET Framework. They may be based on specific tasks, such as email, but it’s better to choose a solution that meets the requirements, and not vice versa. Instead, take a look at some sample DDD projects listed here .

+6
source

I agree with what was previously called eulerfx. I would add that if you depend on the structure for using DDD and CQRS, then you take risks depending on the structure and do not understand what is happening. As a result, you may skip what DDD (and CQRS) provides you.

I declare that I began to learn CQRS using the framework (actually NCQRS), but my DDD knowledge was based on Evans' book, and I did not look for a framework for modeling my domain. Since each domain is unique to the problem, I find it difficult to really have a structure that "helps" you implement DDD.

In retrospect, I wish I had gone with NCQRS from the start, as I missed or conveyed some of the intricacies of the CQRS pattern.

There are probably some DDD databases, but I would recommend abandoning them and building your own. You will thank yourself later.

Hope this helps. Good luck

+2
source

You can try CoreDdd , the tutorial here . It contains support for DDD (entities, aggregate roots) and CQRS (commands, queries). There is no support for writing to the file system or sending emails, use the standard .net for this.

0
source

Source: https://habr.com/ru/post/1388546/


All Articles