'Using linq select in DDD style entities
Hello everyone I have question related to EF Core and DDD style entities that I have not found any proper answer about it.
Despite these two facts: 1- Repositories should return POCO entities(not DTO). 2- Domain Entities should have properties with private setter.
In my case I have to use linq select in order to choose specific column from my table so I must use linq select.
In spite of private setters, what is the best way to do this? Should I create custom method for each custom select?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
