代码改变世界

随笔分类 -  SQLite

c# Resolve SQlite Concurrency Exception Problem (Using Read-Write Lock)

2018-01-11 15:08 by Dorisoy, 915 阅读, 收藏,
摘要: This article describes the c# example to solve the problem of SQlite concurrent exception method. To share with you for your reference, as follows: Ac 阅读全文

SQLite multiple threads

2018-01-11 15:07 by Dorisoy, 382 阅读, 收藏,
摘要: const int loops = 1000; public void DatabaseThreadSafetyTest() { var backgroundThread = new Thread(new System.Threading.ThreadStart(() => { for (int i = 1; i <= loops; i++) {... 阅读全文

SQLite Code配置DbConfiguration

2016-06-01 09:54 by Dorisoy, 1284 阅读, 收藏,
摘要: [DbConfigurationType(typeof(SQLiteConfiguration))] public partial class rsapiEntities : DbContext { public rsapiEntities() : base("name=rsapiEntities") { ... 阅读全文

Xamarin.Android 使用 SQLiteOpenHelper 进行数据库操作

2015-01-28 17:31 by Dorisoy, 1799 阅读, 收藏,
摘要: 一、前言在手机中进行网络连接不仅是耗时也是耗电的,而耗电却是致命的。所以我们就需要数据库帮助我们存储离线数据,以便在用户未使用网络的情况下也可以能够使用应用的部分功能,而在需要网络连接的功能上采用提示方式,让用户决定是否打开网络。而本节我们将会学习如何访问数据库以及提供基本的增删改查功能,并且使他们... 阅读全文