在C#中使用SQLite的语用-S [英] Using Pragma-s of SQLite in C#

查看:170
本文介绍了在C#中使用SQLite的语用-S的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经发布了一个问题

我的项目已经在一个数据库中Sqllite创建与分享C ++ DLL否认=无。这个DLL将数据插入到数据库我也必须访问数据库并显示C#EXE。显示需要进行异步完成。所以同时发动连接sqlitedb我可以锁定表或数据库的任何方式。如果可能的话,谁能给我如何链接或样品这是可以做到

"My Projects has c++ dll in which a db is created in Sqllite with share deny = none . This dll will insert data into Db and I have a c# exe which must access the db and display it . Display needs to be done asynchronously. So there any way while launching connection to sqlitedb i can lock the table or db. if Possible can anyone give me links or sample on how it can be done "

为了这个,我得到了使用语用的-s任何一个可以告诉我如何实现SQLlite的编译-S在C#中的答复。

for this I got a reply of of using Pragma -s can any one tell me on how to implement PRagma-s of SQLlite in C#.

推荐答案

编译指示可以在连接字符串中设置

Pragmas can be set in your connection string

有关如:结果
字符串conString =数据源=文件名;版本= 3; PRAGMA locking_mode =正常;

您可以添加多个编译到连接字符串

You can append more than one pragma to the connection string

这篇关于在C#中使用SQLite的语用-S的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆