跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

SQLiteConfiguration.cs

22 行 · 713 B历史下载
1using System;
2using System.Collections.Generic;
3using System.Data.Entity;
4using System.Data.Entity.Core.Common;
5using System.Data.SQLite;
6using System.Data.SQLite.EF6;
7using System.Linq;
8using System.Text;
9using System.Threading.Tasks;
10
11namespace Core.Librarys.SQLite
12{
13 public class SQLiteConfiguration : DbConfiguration
14 {
15 public SQLiteConfiguration()
16 {
17 SetProviderFactory("System.Data.SQLite", SQLiteFactory.Instance);
18 SetProviderFactory("System.Data.SQLite.EF6", SQLiteProviderFactory.Instance);
19 SetProviderServices("System.Data.SQLite", (DbProviderServices)SQLiteProviderFactory.Instance.GetService(typeof(DbProviderServices)));
20 }
21 }
22}