I made a mapping for my class Sortcode:
public SortcodeMap()
{
WithTable("Sortcodes");
UseCompositeId()
.WithKeyProperty(x => x.Id, "Id")
.WithKeyReference(x => x.Wholesaler, "WholesalerId");
Map(x => x.Description, "
}
This produces an .hbm.xml file with the following element:
<key-property type="String" name="Id" column="Id" />
But I want:
<key-property type="String" name="Id" column="Id" length="1" />
because it influences my create script. Is this possible with Fluent
NHibernate?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---