Foreign key support in SQLite3

后端 未结 1 1125
一整个雨季
一整个雨季 2021-01-20 07:02

According to this thread from 2010, an \"EnforceFKConstraints\" connection string property was supposed to be implemented into future releases of SQLite. Does anyone know if

相关标签:
1条回答
  • 2021-01-20 07:37

    Future development of System.Data.SQLite ADO.NET provider for SQLite is done by this group. The project is currently in migration status and some features are even unavailable now (which were available in 1.0.66 version, which is last maintained by Robert Simpson (original library author)).

    According to latest source code available in trunk "EnforceFKConstraints" is not supported. However there is foreign keys connection string property which have default value of False, maybe it does the job? Try including foreign keys=True property in your connection string. Be sure to use latest stable build from here.

    Update. After looking deeper in source, I'm almost sure that this connection string property is doing exactly that you want.

    0 讨论(0)
提交回复
热议问题