Quantcast
Channel: URF - Unit of Work & (extensible/generic) Repositories Framework
Viewing all articles
Browse latest Browse all 1539

New Post: UnityConfig + .RegisterType

$
0
0
Understood. I suppose I'm trying to only use the Services pattern, for that very reason. But I don't know the specific BL yet, so I was hoping to be able to use a generic service in my own Service project.

For instance, suppose I wanted to always soft delete instead of hard delete data for every model. I could override the Delete method in a single generic Service to set a common IsDeleted flag instead of _repo.Delete()...

To do so would require modifying the abstract Entity class. What else might be required for such a use case?

Viewing all articles
Browse latest Browse all 1539

Trending Articles