Created
March 20, 2013 11:56
-
-
Save chester89/5204109 to your computer and use it in GitHub Desktop.
Fluent duplicate mapping problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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