DDD and IOC Containers

Posted by MegaByte on Stack Overflow See other posts from Stack Overflow or by MegaByte
Published on 2010-05-24T12:47:44Z Indexed on 2010/05/24 12:51 UTC
Read the original article Hit count: 464

Filed under:
|
|

Hi

Im fairly new with DDD and Im trying to use IOC in order to loosen up my tightly coupled layers :)

My C# web application consists of a UI, domain and persistence layer. My persistence layer references my domain layer and contains my concrete repository implementations and nhibernate mappings. Currently my UI references my domain layer.

My question : How do I use an IOC container to inject my concrete classes, in my persistence layer, into my domain layer? Does this meen that my UI should also reference my persistence layer?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ddd