AutoMapping Custom Collections with FluentNHibernate

Posted by ScottBelchak on Stack Overflow See other posts from Stack Overflow or by ScottBelchak
Published on 2010-05-24T19:15:02Z Indexed on 2010/05/24 23:01 UTC
Read the original article Hit count: 191

I am retrofitting a very large application to use NHibernate as it's data access strategy. Everything is going well with AutoMapping. Luckily when the domain layer was built, we used a code generator. The main issue that I am running into now is that every collection is hidden behind a custom class that derives from List<>. For example

public class League
{
   public OwnerList owners {get;set;}
}
public class OwnerList : AppList<Owner>  { }
public class AppList<T> : List<T>  { }

What kind of Convention do I have to write to get this done?

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about collections