Is it a good idea to create an interface for each domain objects?

Posted by Amitabh on Stack Overflow See other posts from Stack Overflow or by Amitabh
Published on 2010-05-11T15:30:33Z Indexed on 2010/05/11 15:34 UTC
Read the original article Hit count: 170

I was just looking into the source code of an existing project which uses nHibernate and found that there are interfaces created for each entity classes. E.g ICustomer for Customer class. I was just wondering what can be the advantage of this pattern as ICustomer contains mainly the properties and very few methods.

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about design-patterns