Blogginlägg

Map private fields in Entity framework core

Av peter@liteolika.se | Blogg | 24 augusti 2017

In DDD you always want to control what is being put into your domain object. That can be done with public getters and private setters. But when it comes to collections (e.g. System.Collections.Generic.List<T>) it becomes more complicated, due to the fact the the domain object exposes an object of type List<T> which can be modified. […]

The post Map private fields in Entity framework core appeared first on DevJunkie.

Till inlägget