FluentNHibernate - ClassMap vs IAutoMappingOverride

Posted by Mendy on Stack Overflow See other posts from Stack Overflow or by Mendy
Published on 2010-04-25T04:47:36Z Indexed on 2010/04/25 4:53 UTC
Read the original article Hit count: 340

In FluentNHibernate when should I use ClassMap and when IAutoMappingOverride<Entity> for my EntityMap classes.


public class PostMap : ClassMap<Post>
{
    public PostMap()
    {
        ...
    }
}

vs

public class PostMap : IAutoMappingOverride<Post>
{
    public void Override(AutoMapping<Post> mapping) 
    {
        ...
    }
}

© Stack Overflow or respective owner

Related posts about fluent-nhibernate

Related posts about nhibernate-mapping