RuoVea.ExSugar
6.0.18
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package RuoVea.ExSugar --version 6.0.18
NuGet\Install-Package RuoVea.ExSugar -Version 6.0.18
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RuoVea.ExSugar" Version="6.0.18" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RuoVea.ExSugar --version 6.0.18
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RuoVea.ExSugar, 6.0.18"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RuoVea.ExSugar as a Cake Addin #addin nuget:?package=RuoVea.ExSugar&version=6.0.18 // Install RuoVea.ExSugar as a Cake Tool #tool nuget:?package=RuoVea.ExSugar&version=6.0.18
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RuoVea.ExSqlSugar
使用方式
services.AddSqlsugar();// 注册单例上下午服务
或
services.AddSqlsugar(Action<SqlSugarScopeProvider> configAction=>{ ; });// 注册单例上下午服务
内置过滤器
配置用户机构范围过滤器
SqlSugarFilter.SetOrgEntityFilter(db,orgIds);
配置自定义过滤器
SqlSugarFilter.SetCustomEntityFilter(db,configId)
事件订阅中心中心
开启库表差异化日志
LogEvent:DbDiffLog
sql扩展处理
LogEvent:LogExecuting
错误SQL
LogEvent:SqlSugarError
配置文件
/* 数据库链接 */
"DbConnection": {
// 具体配置见SqlSugar官网(第一个为默认库不需要设置ConfigId)
"ConnectionConfigs": [
{
"DbType": "Sqlite", // MySql、SqlServer、Sqlite、Oracle、PostgreSQL、Dm、Kdbndp、Oscar、MySqlConnector、Access、OpenGauss、QuestDB、HG、ClickHouse、GBase、Odbc、Custom
"ConnectionString": "DataSource=./ruovea.dll", // 库连接字符串
"EnableInitDb": true, // 启用库表初始化
"EnableInitSeed": true, // 启用种子初始化
"EnableDiffLog": true, // 启用库表差异日志
"EnableUnderLine": true, // 启用驼峰转下划线
"IsEncrypt": true, //是否加密
"DbSecurity": "" //链接字符串解密密钥
}
// 其他数据库配置(可以配置多个)
//{
// "ConfigId": "test",
// "DbType": "Sqlite",
// "ConnectionString": "DataSource=./test.db", // 库连接字符串
// "EnableInitDb": true, // 启用库表初始化
// "EnableInitSeed": true, // 启用种子初始化
// "EnableDiffLog": false, // 启用库表差异日志
// "EnableUnderLine": false // 启用驼峰转下划线
// "IsEncrypt": true, //是否加密
// "DbSecurity": "" //链接字符串解密密钥
//}
]
},
"AssemblysService": [] //需要DI的服务
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- RuoVea.ExCache (>= 6.0.4)
- RuoVea.ExDto (>= 6.0.11)
- RuoVea.ExEvenBus (>= 6.0.2)
- RuoVea.ExIdGen (>= 6.0.0)
- RuoVea.ExUtil (>= 6.0.13)
- RuoVea.SM (>= 6.0.1)
- SqlSugarCore (>= 5.1.4.58)
- System.Linq.Dynamic.Core (>= 1.3.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on RuoVea.ExSugar:
Package | Downloads |
---|---|
RuoVea.OmiApi.Config
参数配置接口 |
|
RuoVea.OmiApi.Dict
字典管理 |
|
RuoVea.OmiApi.Log
日志管理 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.0.10 | 84 | 11/1/2024 |
8.0.0.9 | 80 | 10/26/2024 |
8.0.0.8 | 71 | 10/25/2024 |
8.0.0.7 | 84 | 10/10/2024 |
8.0.0.6 | 89 | 9/24/2024 |
8.0.0.5 | 93 | 9/22/2024 |
8.0.0.4 | 79 | 9/22/2024 |
8.0.0.3 | 96 | 9/19/2024 |
8.0.0.2 | 109 | 9/11/2024 |
8.0.0.1 | 107 | 8/29/2024 |
8.0.0 | 108 | 8/28/2024 |
7.0.0.10 | 68 | 11/1/2024 |
7.0.0.9 | 72 | 10/26/2024 |
7.0.0.8 | 67 | 10/25/2024 |
7.0.0.7 | 89 | 10/10/2024 |
7.0.0.6 | 81 | 9/24/2024 |
7.0.0.5 | 88 | 9/22/2024 |
7.0.0.4 | 91 | 9/22/2024 |
7.0.0.3 | 87 | 9/19/2024 |
7.0.0.2 | 105 | 9/11/2024 |
7.0.0.1 | 101 | 8/29/2024 |
7.0.0 | 104 | 8/28/2024 |
6.0.18.13 | 1,440 | 11/1/2024 |
6.0.18.12 | 414 | 10/26/2024 |
6.0.18.11 | 76 | 10/25/2024 |
6.0.18.10 | 244 | 10/10/2024 |
6.0.18.9 | 574 | 9/24/2024 |
6.0.18.8 | 161 | 9/22/2024 |
6.0.18.7 | 95 | 9/19/2024 |
6.0.18.6 | 155 | 9/11/2024 |
6.0.18.5 | 113 | 8/29/2024 |
6.0.18.4 | 93 | 8/28/2024 |
6.0.18.3 | 118 | 8/25/2024 |
6.0.18.2 | 139 | 3/13/2024 |
6.0.18.1 | 133 | 3/13/2024 |
6.0.18 | 257 | 3/25/2023 |
6.0.17 | 240 | 3/25/2023 |
6.0.16 | 240 | 3/25/2023 |
6.0.15 | 252 | 3/24/2023 |
6.0.13 | 231 | 3/15/2023 |
6.0.12 | 230 | 3/14/2023 |
6.0.11 | 248 | 3/14/2023 |
6.0.10 | 275 | 3/11/2023 |
6.0.9 | 501 | 8/22/2022 |
6.0.8 | 469 | 8/18/2022 |
6.0.7 | 448 | 8/17/2022 |
6.0.6 | 474 | 8/16/2022 |
6.0.5 | 490 | 7/5/2022 |
6.0.4 | 494 | 7/5/2022 |
6.0.3 | 523 | 6/10/2022 |
6.0.2 | 564 | 4/11/2022 |
6.0.1 | 573 | 4/11/2022 |
6.0.0 | 585 | 3/18/2022 |
5.0.1.5 | 71 | 11/1/2024 |
5.0.1.4 | 75 | 10/26/2024 |
5.0.1.3 | 70 | 10/25/2024 |
5.0.1.2 | 80 | 10/10/2024 |
5.0.1.1 | 87 | 9/24/2024 |
5.0.1 | 642 | 3/18/2022 |
5.0.0 | 559 | 3/18/2022 |