I got this to work by not specifying any generator. i.e.:

Id(x => x.Id).ColumnName("No_");

David Woods wrote:
> I am mapping against a legacy database that's primary key is strings not 
> integers. Is there a way to use a string for the Id() mapping? (We can't 
> add an artificial key to the database either).
>
> >
>   


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