RuoVea.ExSugar 6.0.18.2

dotnet add package RuoVea.ExSugar --version 6.0.18.2
NuGet\Install-Package RuoVea.ExSugar -Version 6.0.18.2
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.2" />
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.2
#r "nuget: RuoVea.ExSugar, 6.0.18.2"
#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.2

// Install RuoVea.ExSugar as a Cake Tool
#tool nuget:?package=RuoVea.ExSugar&version=6.0.18.2

RuoVea.ExSqlSugar

使用方式

创建时

字段属性包涵

CreateTime 默认赋值系统当前时间
Creator 赋值当前登录用户(若有)

创建时

字段属性包涵

ModifyTime 默认赋值系统当前时间
Modifier 赋值当前登录用户(若有)

查询时

字段模型继承了

1、IDeletedFilter 将自动过滤 IsDeleted数据

2、EntityBase、ICreatorFilter 将自动过滤 UserId数据

services.AddSqlSugarSetup();// 注册服务

内置过滤器

配置实体假删除过滤器

IDeletedFilter

创建用户赋值

EntityBase、ICreatorFilter

租户数据过滤

ITenantIdFilter

内置事务单元

使用方式、

1、开启事务单元 services.AddSqlSugarSetup(IsAllUnitOfWork:true);// 注册服务 开启全局事务单元

2、在需要开启的控制器方法增加事务单元特性 [UnitOfWork]

配置文件


  /* 数据库链接 */
  "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 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.18.2 99 3/13/2024
6.0.18.1 98 3/13/2024
6.0.18 238 3/25/2023
6.0.17 204 3/25/2023
6.0.16 210 3/25/2023
6.0.15 223 3/24/2023
6.0.13 219 3/15/2023
6.0.12 206 3/14/2023
6.0.11 224 3/14/2023
6.0.10 231 3/11/2023
6.0.9 464 8/22/2022
6.0.8 449 8/18/2022
6.0.7 414 8/17/2022
6.0.6 428 8/16/2022
6.0.5 469 7/5/2022
6.0.4 474 7/5/2022
6.0.3 486 6/10/2022
6.0.2 534 4/11/2022
6.0.1 537 4/11/2022
6.0.0 557 3/18/2022
5.0.1 615 3/18/2022
5.0.0 544 3/18/2022