1 Star 2 Fork 2

ErikZhouXin / NSQLiteCipher

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

NSystem.Data.SQLiteCipher

本仓库基于efcore中Microsoft.Data.Sqlite.Core进行开发,因为SQLite需要加密,之前使用的System.Data.SQLite无法使用加密,而Microsoft.Data.Sqlite.Core无法使用连接字符串加密方式,再有项目需要兼容较低版本的.NetFramework,所以将自己的代码和Microsoft.Data.Sqlite(v5.0.9)进行合并,从而衍生出此项目(NSystem.Data.SQLiteCipher)。而对于使用EntityFramework这个ORM来说,它对于Microsoft.Data.Sqlite.Core的依赖使得也许重新封装EFCore,所以形成另一个项目(NSystem.Data.SQLiteCipherEntity),后续会跟进efcore的更新,使此项目的易用度得到提升,敬请期待!
除此之外还包括【NSQLitePCL.Raw.Core】和【NSQLitePCL.Raw.Liber】,移植于SQLitePCL.raw(v2.0.6),由于SQLitePCL.raw系列生成过于繁琐,所以将此库中的项目删繁就简,只保留应用中的Sqlcipher部分,但依旧可以支持SQLitePCLRaw.lib.*的组件。

类库介绍

1.使用连接字符串中带密码以及版本号等内容进行匹配,未加载连接池应用。如,

DataSource=xxx.sqlite;Version=3;Password=xxx;

2.可使用SqliteConnectionPool.GetConnection(string connString)使用连接池进行连接获取SqliteConnection,可大大减少频繁DbConnection.Open的耗时。

安装说明

可以通过Nuget获取此包的发布

Install-Package NSystem.Data.SQLiteCipher

免责声明

如侵犯原作者权益,望告知,发现问题立即整改。

MIT License Copyright (c) 2021 天一生水[ErikZhouXin] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

结合Microsoft.Data.Sqlite.Core以及使用的不同习惯,形成一个自己的类库 展开 收起
C#
MIT
取消

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/erikzhouxin/nsqlitecipher.git
git@gitee.com:erikzhouxin/nsqlitecipher.git
erikzhouxin
nsqlitecipher
NSQLiteCipher
master

搜索帮助