开发者

Specification Pattern in a separate Project?

开发者 https://www.devze.com 2023-01-30 09:53 出处:网络
I\'m planning to use \"Specification pattern\" to validate my domain objects in my solution. Where is the \"correct\" place to put the \"specification\" classes in my solution? Should I create a 开发

I'm planning to use "Specification pattern" to validate my domain objects in my solution.

Where is the "correct" place to put the "specification" classes in my solution? Should I create a 开发者_如何学Godedicated project that contains the "specification" classes, or should I chuck them into Domain or Business project layer?


Wherever you feel is the right place to achieve functional cohesiveness i.e. keep functionally related artifacts together so they change together, change is localized, easy to find stuff

0

精彩评论

暂无评论...
验证码 换一张
取 消