It does not appear like you can in Fluent. It appears there's a decent
number of attributes that are available in the NH key-property spec, but are
not available. I've added it as Issue
199<http://code.google.com/p/fluent-nhibernate/issues/detail?id=199>
in
case you wanted to keep track of it.

On Wed, Apr 22, 2009 at 3:51 AM, Basuitdelft <[email protected]> wrote:

>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to