Created
August 27, 2015 20:07
-
-
Save mxmissile/5d0e7ac82004f95e1b57 to your computer and use it in GitHub Desktop.
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 PostalAddressMap | |
: ClassMap<PostalAddress> | |
{ | |
public PostalAddressMap() | |
{ | |
Table("tblPostalAddresses"); | |
Id(x => x.Id); | |
Map(x => x.Address); | |
Map(x => x.AddressType); | |
Map(x => x.Owner); | |
References(x => x.Contact) | |
.Class<Contact>() | |
.Column("Owner"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment