chobo2
chobo2

Reputation: 85875

Do not Enforce Foreign Key Constraints in fluent nhibernate / nhibernate

I am wondering how do you setup in fluent nhibernate to tell that a relationship should NOT "Enforce Foreign Key Constraints"

http://gyazo.com/6a1cf3014b0650eb3ff5e05f855abf69

Do you just set the reference to Nullable?

Upvotes: 3

Views: 563

Answers (1)

Bertvan
Bertvan

Reputation: 5033

In FluentNHibernate, 'NotFound.Ignore()' might do what you need, eg:

References(x => x.Parent).NotFound.Ignore();

Upvotes: 1

Related Questions