Reputation: 537
I am trying to convert this code:
Component(x => x.User, x =>
{
x.References(m => m.UserAccount).Columns(@"UserAccountId", @"UserAccountType");
x.References(m => m.Postman, @"PostmanId");
});
back into hbm.xml, my question: is everything alrigh with way I did it or am I missing something? Converted code:
<component name="User">
<many-to-one name="UserAccount">
<column name="UserAccountId"/>
<column name="UserAccountType"/>
</many-to-one>
<many-to-one name="Postman" column="PostmanId"></many-to-one>
</component>
Upvotes: 0
Views: 186
Reputation: 15303
You can output all of your fluent nhibernate mappings as xml if you want. Sounds a lot easier than this.
Generate XML mappings from fluent Nhibernate
Upvotes: 1