User-1237044210 posted
Hi liuc,
I really knew your problems. I also have some experiences about this.
So what is Registry pattern?
Martin Powler is define it as below:
"A Registry is essentially a global object, or at least it looks like one - even if it isn't as global as it may appear."
In Structure Map,
Jeremy Miller used Registry pattern for register all instances that you want to use on your application.
And the Repository pattern is found by Eric Evans, and in his book Repository is abstract your persistence layer for persistence ignorance.
I also used 2 patterns in my project at codeplex, you can see it at
http://nma.codeplex.com/
Regards
ThangChung