Skip to content

Instantly share code, notes, and snippets.

@chester89
Created March 20, 2013 11:56
Show Gist options
  • Save chester89/5204109 to your computer and use it in GitHub Desktop.
Save chester89/5204109 to your computer and use it in GitHub Desktop.
Fluent duplicate mapping problem
public class ArticleListMap : SubclassMap<Article>
{
ArticleListMap()
{
DiscriminatorValue(1);
}
}
public class ArticleMap : SubclassMap<Article>
{
ArticleMap()
{
DiscriminatorValue(4);
Map(x => x.ExtraText);
HasManyToMany(x => x.TagSet);
HasManyToMany(x => x.ImageSet);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment