Reputation: 1023
I have a v-large number of hierarchical structures (or DTO's) that are shared across different business logic, application tiers, web service and WCF contracts. I want to refactor all of my code to split the structures into discreet business domain areas.
Two questions:
Are there any tools that can help me do this (given that I want class A, list all of the dependencies)?
Is there a case for duplicating DTO's in different application domains to allow them to evolve independently? The idea of a fixed Canonical Business Model is pure fiction!
Upvotes: 1
Views: 197
Reputation: 36037
Regarding number 2: sure, bounded context: http://dddcommunity.org/discussion/messageboardarchive/BoundedContext.html check this post to understand it better: http://devlicio.us/blogs/casey/archive/2009/02/11/ddd-bounded-contexts.aspx
For number 1 Resharper :)
Upvotes: 1
Reputation: 81907
Structure 101 (not free)(www.structure101.com/) and/or Code Navigator (free) (http://plugins.intellij.net/plugin/?id=3202) might be useful
Upvotes: 0
Reputation: 49970
I'll start with NDepend analysis to list dependencies (see this article : Control Component Dependencies to gain cleaner architecture)
And then I'll use Resharper to ease the refactoring.
Good luck.
Upvotes: 1
Reputation: 64737
http://www.jetbrains.com/resharper/features/code_refactoring.html#Rename
Upvotes: 1
Reputation: 4970
Resharper/CodeRush can help with question# 1. They both have good support for refactoring.
Upvotes: 1