Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 sqlite3 命令行界面,我可以键入“pragma foreign_keys”并查看结果,而无需打开数据库。如何使用 system.data.sqlite 在 C# 中执行此操作?
谢谢
阿德里安
只需将其添加到您的连接字符串中:
var cnnString = "...;PRAGMA foreign_keys=1"
例如。