I have a class that contains two properties of the same type.
public class Business
{
//...
public Address MailingAddress{get; set;}
public Address PrincipleLocation{get;set;}
}
class Address
{
string StreetAddress{get;set;}
string City{get;set;}
string State{get;set;}
string ZipCode{get;set;}
}
I tried automapping at first, which appears to apply a column naming
convention based on the property name by default.
For reasons I won't go into I had to abandon automapping in favor of
fluent mapping. Fluent mappings don't appear to share this convention.
A quick look at the generated schema shows only a single set of
columns for storing an address. How do I replicate this?
If automapping is the only way to accomplish I guess I can try mixing
automapping and fluent mapping.
--
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fluent-nhibernate?hl=en.