Skip to content

Instantly share code, notes, and snippets.

@mxmissile
Created August 27, 2015 20:07
Show Gist options
  • Save mxmissile/5d0e7ac82004f95e1b57 to your computer and use it in GitHub Desktop.
Save mxmissile/5d0e7ac82004f95e1b57 to your computer and use it in GitHub Desktop.
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