Created
March 16, 2011 18:57
-
-
Save skoon/873078 to your computer and use it in GitHub Desktop.
When I try to save an entity using this mapping, I'm told that the CompositeId class must override "Equals". Which seems like a pain.
This file contains hidden or 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 PageKeywordMappings : ClassMap<ScrewturnPageKeyword> | |
{ | |
public PageKeywordMappings() | |
{ | |
Table("PageKeyword"); | |
CompositeId() | |
.KeyProperty(m => m.Page) | |
.KeyReference(m => m.Keyword) | |
.KeyReference(m => m.Namespace); | |
Map(m => m.Namespace); | |
Map(m => m.Revision); | |
Map(m => m.Keyword); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment