How do you do Component mapping?

IE this regularly into auto-mapping

Component(employee => employee.Address,
address =>
{
address.Map(a => a.City).WithLengthOf(15);
address.Map(a => a.CountryRegionName).WithLengthOf(15);
address.Map(a => a.PostalCode).WithLengthOf(10);
address.Map(a => a.StateProvinceName).WithLengthOf(15);
address.Map(a => a.AddressLine1,”Address”).WithLengthOf(60);
}
);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to