Enable referential integrity using nHIbernate using the SQlite database

Good evening everyone,

I have a project using nHibernate (2.1.2.4000) and System.Data.SQLite (1.0.66.0). I want to force NHibernate to create foreign keys when creating the database, or at least use the keyword "foreign key", then I can create triggers.

I googled, but I did not find any documentation on how to do this, and I am losing faith. I really don't want (and will not) check referential integrity inside my code.

In a word: how to enable referential integrity (or equivalent) using nHibernate and SQLite?

Thanks in advance,

0
source share

Source: https://habr.com/ru/post/1345800/


All Articles