Because ArticleBase
implements IArticle
and all your *Article
s inherit from ArticleBase
you shouldn't have any problem dependency injection wise with mapping your ArticleBase
as the base class:
public class ArticleBaseMap : ClassMapping<ArticleBase>
{
public ArticleBaseMap()
{
Property(x => x.Category, m =>
{
m.NotNullable(true);
});
// ...
}
}