What DBMS? If you are using SQLite it doesn't support forreign keys.
On Thu, Aug 20, 2009 at 10:36 PM, JMan <[email protected]> wrote:
>
> in a class I have defined a one-to-one. (I need the one-to-one).
>
> HasOne<MyClass>(x => x.Property).ForeignKey
> ("FK_MyOneToOne").Constrained();
>
> However it's not creating the foreignKey constraint in the database
> when I export the schema, Could I be doing something wrong?
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---