c# - Do I violates Common Closure Principle(CCP) -


i have application following dlls:

web project - mvc web application

wcf services - services web application uses.

model - entity framework code first entities , dbcontext object.

now when need change lets function in wcf services change function web affected , need make add service reference again , change code uses wcf service , model changes...

as ccp states: package should not have more 1 reason change. if change happen in application dependent on number of packages, ideally want changes occur in 1 package, rather in number of them. helps determine classes change , package them same reasons. if classes tightly coupled, put them in same package.

so in design violates principle? if can explain better design glad.

wcf services contain wsdl definition contract using functions , defines entities it. 1 possible reason need add reference again changing contract. more information check here: http://msdn.microsoft.com/en-us/library/aa738723(v=vs.110).aspx


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -