I've learned that the only way to enable FK constraints in sqlite is to turn on this pragma:
PRAGMA foreign_keys = ON;
But unfortunately, if I understood correctly, I will have to execute that query in the beginning of every session. Am I correct? How can I do it "automatically" with NHibernate? Is there a way to hook into NH and execute that right after opening session? I'm using NH 3.0.