SQLite DateTime比较
SELECT * FROM table WHERE strftime('%s', date) BETWEEN strftime('%s', start_date) AND strftime('%s', end_date)
linq for sqlite的使用方法(C#)
1. 添加引用到工程
System.Data.SQLite
System.Data.SQLite.Linq
2. 修改app.config, 如下:
<??><configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku = ".NETFramework,Version=v4.0"/> <supportedRuntime version="v2.0.50727"/> </startup></configuration>
3. 建立与sqlite表对应的实体类:
using System;using System.Collections.Generic;using System.Linq;using Syste.........