WBC66.SqlSugar.Core
2025.2.5.6
dotnet add package WBC66.SqlSugar.Core --version 2025.2.5.6
NuGet\Install-Package WBC66.SqlSugar.Core -Version 2025.2.5.6
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="WBC66.SqlSugar.Core" Version="2025.2.5.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WBC66.SqlSugar.Core" Version="2025.2.5.6" />
<PackageReference Include="WBC66.SqlSugar.Core" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WBC66.SqlSugar.Core --version 2025.2.5.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WBC66.SqlSugar.Core, 2025.2.5.6"
#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.
#:package WBC66.SqlSugar.Core@2025.2.5.6
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WBC66.SqlSugar.Core&version=2025.2.5.6
#tool nuget:?package=WBC66.SqlSugar.Core&version=2025.2.5.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuget包合集
1. Serilog配置
线上nuget引入 版本号随时更新
<PackageReference Include="WBC66.Serilog.Core" Version="2024.10.28" />
1.1 Serilog配置文件
"SerilogOptions": {
"MinimumLevel": "Information",
"Override": {
"Microsoft": "Warning",
"System": "Warning"
},
"File": {
"Path": "Serilog/log-.txt",
"RollingInterval": "Day"
},
"Console": {
"Enabled": true,
"Minlevel": "Information",
"Template": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}"
},
"Elasticsearch": {
"Uri": "http://k8s.els.com",
"IndexFormat": "test-dev-{0:yyyy.MM.dd}",
"NumberOfShards": 2,
"NumberOfReplicas": 1,
"UserName": "elastic",
"Password": "changeme"
}
}
1.2 Serilog配置
builder.Host.AddSerilogHost(configuration);
app.UseSerilogSetup();
2. NLog配置(两种配置模式,一种nlog.config配置文件,一种json配置) 感觉还是serilog更好用
线上nuget引入 版本号随时更新
<PackageReference Include="WBC66.NLog.Core" Version=" 2024.10.25" />
2.1 NLog配置文件(xml方式)
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true"
throwConfigExceptions="true">
<extensions>
<add assembly="NLog.Web.AspNetCore"/>
<add assembly="NLog.Targets.ElasticSearch"/>
</extensions>
<targets>
<target name="logfile" xsi:type="File" fileName="./log/${shortdate}_${level}.log"
layout="${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=tostring}" />
<target name="logconsole" xsi:type="Console"
layout="${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=tostring}" />
<target xsi:type="ElasticSearch" name="els" index="test-dev-${date:format=yyyy.MM}" uri="http://k8s.els.com"
layout="${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=tostring}"/>
</targets>
<rules>
<logger name="Microsoft.*" minlevel="Trace" final="true" />
<logger name="*" minlevel="Info" writeTo="logfile" />
<logger name="*" minlevel="Info" writeTo="els" />
</rules>
</nlog>
2.2 NLog配置
builder.Host.AddNLogHost();
2.3 NLog配置文件(json方式)
"NLog": {
"autoReload": true,
"throwConfigExceptions": true,
"extensions": [
{
"assembly": "NLog.Web.AspNetCore"
},
{
"assembly": "NLog.Targets.ElasticSearch"
}
],
"targets": {
"logfile": {
"type": "File",
"fileName": "./log/${shortdate}_${level}.log",
"layout": "${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=tostring}"
},
"logconsole": {
"type": "Console",
"layout": "${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=tostring}"
},
"els": {
"type": "ElasticSearch",
"index": "test-dev-${date:format=yyyy.MM}",
"uri": "http://k8s.els.com",
"layout": "${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=tostring}"
}
},
"rules": [
{
"logger": "Microsoft.*",
"minlevel": "Trace",
"final": true
},
{
"logger": "*",
"minlevel": "Info",
"writeTo": "logfile"
},
{
"logger": "*",
"minlevel": "Info",
"writeTo": "els"
}
]
}
2.4 NLog配置
builder.AddNLogSteup(configuration);
3. SqlSugar配置
线上nuget引入 版本号随时更新
<PackageReference Include="WBC66.SqlSugar.Core" Version="2025.02.05.1" />
3.1 SqlSugar配置文件
/*
对应下边的 DBType
MySql = 0,
SqlServer = 1,
Sqlite = 2,
Oracle = 3,
PostgreSQL = 4,
Dm = 5,//达梦
Kdbndp = 6,//人大金仓
*/
"DBS": [
{
"ConfigId": "journal",
"DBType": 0,
"IsAutoCloseConnection": true,
"ConnectionString": "server=localhost;Database=journal;Uid=root;Pwd=123456;allowPublicKeyRetrieval=true;"
}
]
3.2 SqlSugar配置
3.2.1 使用Ioc模式的配置
//使用SqlSugar
//参数含义
//1.配置文件
//2.是否启用AOP日志
//3.ConfigurationSugar自定义配置
builder.Services.AddSqlSugarIocSetup(configuration.GetSection("DBS").Get<List<IocConfig>>(), true, config =>
{
config.Aop.OnLogExecuting = (sql, pars) =>
{
Console.WriteLine("这是自定义事件{0}", sql);
};
});
#### 3.2.2 使用普通模式的配置
``` csharp
//使用SqlSugar
var list = configuration.GetSection("DBS").Get<List<ConnectionConfig>>();
foreach (var item in list)
{
//调试模式日志输出
#if DEBUG
item.AopEvents = new AopEvents()
{
OnLogExecuting = (sql, pars) =>
{
Console.WriteLine($"{DateTime.Now},ConfigId:{item.ConfigId},Sql:{UtilMethods.GetSqlString(DbType.MySql, sql, pars)}");
}
};
}
#endif
builder.Services.AddSqlSugarSetup(list);
//注入3.2.1.1中的仓储(如果使用其他方式注入,可以忽略这里) builder.Services.AddSingleton<IUserRepository, UserRepository>();
### 3.3 实体类、仓储
``` csharp
/// <summary>
/// 用户表
///</summary>
[SugarTable("J_User")]//表别名
[Tenant("journal")]//数据库标识 需要与配置文件中的ConfigId对应
public class User
{
/// <summary>
///用户id
///</summary>
[Key]
[SugarColumn(ColumnName = "ID", IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
}
//可以直接不使用接口模式,直接使用仓储(如果名称Service、Repository、Dao结尾的类,ISingletony也可以省略,前提是必须使用autofac包)
public class UserRepository : BaseSqlSugarIocRepository<User>, ISingleton
{
//在这里直接用base. 也可以直接调用仓储的方法
}
public class UserRepository : BaseSqlSugarRepository<User>, ISingleton
{
public UserRepository(ISqlSugarClient db) : base(db)
{
}
}
/// <summary>
/// 用户仓储(使用SqlsugarIoc模式)
/// </summary>
public class UserRepository : BaseSqlSugarIocRepository<User>, IUserRepository
{
//在这里直接用base. 也可以直接调用仓储的方法
}
/// <summary>
/// 用户仓储接口层(使用SqlsugarIoc模式)
/// </summary>
public interface IUserRepository : IBaseRepository<User>, ISingleton
{
}
//另一个仓储需要注入db
public class UserRepository : BaseSqlSugarRepository<User>, ISingleton
{
public UserRepository(ISqlSugarClient db) : base(db)
{
}
}
/// <summary>
/// 用户仓储接口层(使用SqlsugarIoc模式)
/// </summary>
public interface IUserRepository : IBaseRepository<User>, ISingleton
{
}
//注入
private readonly IUserRepository _userRepository;
public SqlSugarController(IUserRepository userRepository)
{
_userRepository = userRepository;
}
//方法中使用
public object Get()
{
var user = _userRepository.GetSingle(p => p.Id == 1);
return user;
}
3.4 使用示例
//所有操作都有异步方法,增加Async即可
//直接使用DbContext上下文
_userRepository.SqlSugarDbContext
//使用上下文Ado
_userRepository.SqlSugarDbContextAdo
3.4.1 Ioc仓储模式
//查询单个
var obj = _userRepository.GetSingle(p => p.Id == 1);
//查询列表
var list = _userRepository.GetList(p => p.Id > 0);
//分页查询 (条件,排序,页码,每页条数)
var page = _userRepository.QueryPage(p => p.Id > 0, "", 1, 10);
//分页查询 (条件,排序,排序方式,页码,每页条数)
var page2 = _userRepository.QueryPage(p => p.Id > 0, o => o.Id, SqlSugar.OrderByType.Desc, 1, 10);
//分页排序
// 设置排序参数
// Dictionary<string, QueryOrderBy> orderBy = new Dictionary<string, QueryOrderBy>
// {
// { "CreateTime", QueryOrderBy.Desc }, // 按 CreateTime 降序排序
// { "Name", QueryOrderBy.Asc } // 按 Name 升序排序
// };
// var page3 = _userRepository.IQueryablePage(p => p.Id > 0, 1, out int rowcount, orderBy, true);
//判断数据是否存在
var isAny = _userRepository.Exists(p => p.Id == 1);
//获取数据总数
var count = _userRepository.GetCount(p => p.Id > 0);
//添加
var userId = _userRepository.Insert(new User() { Id = 1 });
//添加指定列
var userId2 = _userRepository.Insert(new User() { Id = 1 }, p => new { p.Id });
//批量添加
var userIds = _userRepository.Insert(new List<User>() { new User() { Id = 1 }, new User() { Id = 2 } });
//修改
var isUpdate = _userRepository.Update(obj);
//修改指定列
var isUpdate2 = _userRepository.Update(p => new User() { Name = "2" }, p => p.Name == "test");
//根据条件更新 (实体,要修改的列,条件)
var isUpdate3 = _userRepository.Update(obj, new List<string>() { "name" }, new List<string>() { "Id = 1" });
//批量修改
var isUpdate4 = _userRepository.Update(new List<User>() { new User() { Id = 1 }, new User() { Id = 2 } });
//无实体更新
Dictionary<string, object> updateColumns = new Dictionary<string, object>
{
{ "name", "2" }
};
var isUpdate5 = _userRepository.Update(updateColumns, x => x.Id == 1);
//删除
var isDelete = _userRepository.Delete(obj);
//批量删除 有问题
var isDelete2 = _userRepository.Delete(new List<User>() { new User() { Id = 1 }, new User() { Id = 2 } });
//根据主键删除
var isDelete3 = _userRepository.DeleteByIds([1, 2]);
//执行自定义sql
//查询
var list2 = _userRepository.SqlQuery("select * from test_user", null);
//查询到指定实体
var list3 = _userRepository.SqlQuery<User>("select * from test_user", null);
//执行增删改
var count2 = _userRepository.ExecuteSql("update test_user set name='a' where id=1", null);
//查询分页到指定实体
var page4 = _userRepository.SqlPageQuery<User>("select * from test_user", null, 1, 1);
var page4Count = page4.TotalCount;
//执行事务 return true表示提交,return false表示回滚
var BeginTranRes = _userRepository.DbContextBeginTransaction(() =>
{
_userRepository.Insert(new User() { Id = 1 });
_userRepository.Insert(new User() { Id = 2 });
return true;
});
3.4.2 原生使用方法
//也可以用原生方法
var list = _userRepository.GetList(p => p.Id > 0);
//分页查询 (条件,排序,页码,每页条数)
int pgae = 1;
int pageSize = 10;
int totalCount = 0;
var page = _userRepository.AsQueryable().Where(p => p.Id > 0).OrderBy(o => o.d).ToPageList(pgae, pageSize, ref totalCount);
//分页查询 (条件,排序,排序方式,页码,每页条数)
var page2 = _userRepository.AsQueryable().Where(p => p.Id > 0).OrderBy(o => o.d, SqlSugar.OrderByType.Desc).ToPageList(pgae, pageSize, ref totalCount);
//分页排序
// 设置排序参数
List<OrderByModel> orderByModels = new List<OrderByModel>
{
new OrderByModel() { FieldName = "CreateTime", OrderByType = OrderByType.Desc }, // 按 CreateTime 降序排序
new OrderByModel() { FieldName = "Name", OrderByType = OrderByType.Asc } // 按 Name 升序排序
};
var page3 = _userRepository.AsQueryable().Where(p => p.Id > 0).OrderByorderByModels).ToPageList(pgae, pageSize, ref totalCount);
//判断数据是否存在
var isAny = _userRepository.AsQueryable().Any(p => p.Id == 1);
//获取数据总数
var count = _userRepository.AsQueryable().Count(p => p.Id > 0);
//添加
var user = new User() { Id = 1 };
var userId = _userRepository.InsertReturnIdentity(user);
//添加指定列
var userId2 = _userRepository.AsInsertable(user).InsertColumns(p => new { p.d }).ExecuteReturnIdentity();
//批量添加
_userRepository.AsInsertable(new List<User>() { new() { Id = 1 }, new() { Id = } });
//修改
var isUpdate = _userRepository.Update(user);
//修改指定列
var isUpdate2 = _userRepository.AsUpdateable(user).UpdateColumns(p => new User) { Name = "2" }).Where(p => p.Name == "test").ExecuteCommand();
//根据条件更新 (实体,要修改的列,条件)
var isUpdate3 = _userRepository.AsUpdateable(user).UpdateColumns(p => new User) { Name = "2" }).Where(p => p.Id == 1).ExecuteCommand();
//批量修改
_userRepository.AsUpdateable(new List<User>() { new() { Id = 1 }, new() { Id = } });
//删除
var isDelete = _userRepository.Delete(user);
//批量删除
_userRepository.Delete(new List<User>() { new() { Id = 1 }, new() { Id = } });
//根据主键删除
_userRepository.DeleteByIds(new dynamic[] { 1, 2 });
//执行自定义sql
//查询
var list2 = _userRepository.SqlSugarDbContext.SqlQueryable<User>("select * rom test_user");
//查询到指定实体
var list3 = _userRepository.SqlSugarDbContext.SqlQueryable<User>("select * rom test_user").ToList();
//执行增删改
var count2 = _userRepository.SqlSugarDbContextAdo.ExecuteCommand("update est_user set name='a' where id=1");
//事务
var tran = _userRepository.SqlSugarDbContext.AsTenant();
tran.BeginTran();
try
{
_userRepository.Insert(new User() { Id = 1 });
_userRepository.Insert(new User() { Id = 2 });
tran.CommitTran();
}
catch (Exception)
{
tran.RollbackTran();
}
4. EF配置(推荐使用上边的SqlSugar兼容性更强一些功能更完善)
线上nuget引入 版本号随时更新
<PackageReference Include="WBC66.EF.Core" Version="2024.10.29" />
4.1 EF配置文件
"DBS": [
/*
对应下边的 DBType
MySql = 0,
SqlServer = 1
*/
{
"DBType": 0,
"ConnectionString": "server=localhost;Database=journal;Uid=root;Pwd=123456;allowPublicKeyRetrieval=true;"
}
]
4.2 EF上下文
public class TestDBContext : DbContext
{
/// <summary>
/// 日志工厂
/// </summary>
public static readonly ILoggerFactory MyLoggerFactory = LoggerFactory.Create(builder =>
{
builder
.AddFilter((category, level) => category == DbLoggerCategory.Database.Command.Name && level == LogLevel.Information)
.AddConsole();
});
public TestDBContext(DbContextOptions options) : base(options)
{
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
//日志
optionsBuilder.UseLoggerFactory(MyLoggerFactory);
optionsBuilder.EnableSensitiveDataLogging();
base.OnConfiguring(optionsBuilder);
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
}
public DbSet<UserEF> Users { get; set; }
}
4.3 EF配置
//获取配置文件
var efOptions = configuration.GetSection("DBS").Get<List<EFOptions>>()[0];
builder.Services.AddEFSetup<TestDBContext>(efOptions);
builder.Services.AddScoped<IUserEFRepository, UserEFRepository>();
//注入
builder.Services.AddSingleton<IUserRepository, UserRepository>();
4.4 实体类、仓储
/// <summary>
/// 用户表
///</summary>
[Table("test_user")]
public class UserEF
{
/// <summary>
///用户id
///</summary>
[Key]
public int Id { get; set; }
/// <summary>
///用户名称
///</summary>
public string? Name { get; set; }
}
/// <summary>
/// 用户仓储
/// </summary>
public class UserEFRepository : BaseRepository<TestDBContext, UserEF>, IUserEFRepository
{
public UserEFRepository(TestDBContext context) : base(context)
{
}
//需要重写方法直接在这里重写
public override int Insert(List<UserEF> entity, bool isSave = true)
{
return base.Insert(entity, isSave);
}
}
/// <summary>
/// 用户仓储接口层
/// </summary>
public interface IUserEFRepository : IBaseRepository<TestDBContext, UserEF>
{
}
4.5 使用示例
//所有操作都有异步方法,增加Async即可
//添加、修改、删除可以设置是否立即保存,然后调用SaveChanges()方法说动保存
//查询单个
var obj = _userRepository.GetSingle(p => p.Id == 1);
//查询列表
var list = _userRepository.GetList(p => p.Id > 0);
//分页查询 (条件,排序,页码,每页条数)
var page = _userRepository.QueryPage(p => p.Id > 0, "", 1, 10);
//分页查询 (条件,排序,排序方式,页码,每页条数)
var page2 = _userRepository.QueryPage(p => p.Id > 0, o => o.Id, OrderByTypeDesc, 1, 10);
//分页排序
// 设置排序参数
// Dictionary<string, QueryOrderBy> orderBy = new Dictionary<string,QueryOrderBy>
// {
// { "CreateTime", QueryOrderBy.Desc }, // 按 CreateTime 降序排序
// { "Name", QueryOrderBy.Asc } // 按 Name 升序排序
// };
// var page3 = _userRepository.IQueryablePage(p => p.Id > 0, 1, out introwcount, orderBy, true);
//判断数据是否存在
var isAny = _userRepository.Exists(p => p.Id == 1);
//获取数据总数
var count = _userRepository.GetCount(p => p.Id > 0);
//添加
var userId = _userRepository.Insert(new UserEF() { Id = 1 });
//批量添加
var userIds = _userRepository.Insert(new List<UserEF>() { new UserEF() { Id= 1 }, new UserEF() { Id = 2 } });
//修改
var isUpdate = _userRepository.Update(obj);
//批量修改
var isUpdate4 = _userRepository.Update(new List<UserEF>() { new UserEF() {Id = 1 }, new UserEF() { Id = 2, Name = "test1" } });
//删除
var isDelete = _userRepository.Delete(obj);
//执行自定义sql
//查询
var list2 = _userRepository.SqlQuery("select * from test_user", null);
//查询到指定实体
var list3 = _userRepository.SqlQuery<UserEF>("select * from test_user",null);
//执行增删改
var count2 = _userRepository.ExecuteSql("update test_user set name='a'where id=1", null);
//查询分页到指定实体
var page4 = _userRepository.SqlPageQuery<UserEF>("select * from test_user",null, 1, 1);
var page4Count = page4.TotalCount;
//执行事务
var BeginTranRes = _userRepository.DbContextBeginTransaction(() =>
{
_userRepository.Insert(new UserEF() { Id = 1 });
_userRepository.Insert(new UserEF() { Id = 2 });
return true;
});
5. Autofac配置
1. Autofac配置
线上nuget引入 版本号随时更新
<PackageReference Include="WBC66.Autofac.Core" Version="2025.02.05.1" />
2.使用Autofac工厂
//使用Autofac(会直接扫描当前项目的所有Service、Repository、Dao结尾的类进行注入)
builder.Host.AddAutofacHostSetup(builder.Services);
//不使用autofac的将所有实现ITransient、ISingleton、IScoped接口的类注入到容器中
//如果使用了autofac则内部已经实现这里不需要注入
builder.Services.AddRegisterDependencies();
3.使用示例
//接口注入直接继承ITransient接口即可(一般情况第二步已经注入了就不需要再注入了)
//继承ITransient、ISingleton、IScoped的都注入了
public interface ITestService : ISingleton
{
string Get();
}
//继承ITransient、ISingleton、IScoped的都注入了
public class TestService : ISingleton
{
}
6. 通过Aop使用内存缓存对接口、方法进行缓存
1. nuget包引入
必须引入两个包 至少在2024.11.7以上
<PackageReference Include="WBC66.Cache.Core" Version="2024.11.7" />
<PackageReference Include="WBC66.Autofac.Core" Version="2025.02.05.1" />
必须开启内存缓存 否则后续步骤无法正常进行
//开启内存缓存
builder.Services.AddMemoryCacheSetup();
2. 对方法使用内存缓存
//使用autofac(内部会自动进行程序集扫描注入,不需要手动注入)
builder.Host.AddAutofacHostSetup(builder.Services, options =>
{
//开启内存缓存拦截器(带有IProxyService接口的类将会被拦截),带有CacheResultAttribute特性的方法将会被缓存
options.AddMemoryCacheResultAop();
});
3. 对控制器接口使用内存缓存
builder.Services.AddControllers(options =>
{
//添加自定义的缓存过滤器
options.Filters.Add<CacheResultFilter>();
});
方法缓存使用示例
//同一个方法不同参数会进行多次缓存
//接口注入直接继承IProxyService接口(继承接口后就不需要再手动注入了),方法上使用CacheResultAttribute特性即可
public class CacheResultService : ICacheResultService
{
//缓存5秒
[CacheResult(5)]
public Student GetStudentAsync(string name)
{
return new Student { Name = name };
}
}
public interface ICacheResultService : IProxyService
{
Student GetStudentAsync(string name);
}
控制器缓存使用示例
[HttpGet]
[CacheResult(5)]//缓存5秒
public object Get()
{
_cacheResultService.GetStudentAsync("这是参数");
return "ok";
}
7. 过滤器,中间件
1. 过滤器
//幂等性过滤器
builder.Services.AddControllers(options =>
{
//添加自定义的缓存过滤器 需要配合第六段的Aop使用
options.Filters.Add<CacheResultFilter>();
//添加自定义的幂等性过滤器
options.Filters.Add<IdempotentFilter>();
});
2. 中间件
//添加自定义的中间件
app.UseMiddleware<LogMiddleware>();//添加日志中间件
app.UseMiddleware<ExceptionMiddleware>();//添加异常处理中间件
app.UseMiddleware<CurrentLimitingMiddleware>(1, 1);//添加限流中间件 1个线程 1个并发
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 is compatible. 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 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- SqlSugar.IOC (>= 2.0.0)
- sqlSugarCore (>= 5.1.4.175)
-
net7.0
- SqlSugar.IOC (>= 2.0.0)
- sqlSugarCore (>= 5.1.4.175)
-
net8.0
- SqlSugar.IOC (>= 2.0.0)
- sqlSugarCore (>= 5.1.4.175)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on WBC66.SqlSugar.Core:
Package | Downloads |
---|---|
WBC66.Core
WBC66.Core集合包 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated | |
---|---|---|---|
2025.2.5.6 | 127 | 2/5/2025 | |
2025.2.5.5 | 112 | 2/5/2025 | |
2025.2.5.4 | 112 | 2/5/2025 | |
2025.2.5.3 | 102 | 2/5/2025 | |
2025.2.5.2 | 112 | 2/5/2025 | |
2025.2.5.1 | 110 | 2/5/2025 | |
2025.1.24.3 | 97 | 1/24/2025 | |
2025.1.24.2 | 97 | 1/24/2025 | |
2025.1.24.1 | 102 | 1/24/2025 | |
2024.11.41 | 131 | 11/4/2024 | |
2024.11.4.3 | 173 | 11/4/2024 | |
2024.11.4.2 | 112 | 11/4/2024 | |
2024.11.4 | 116 | 11/4/2024 | |
2024.11.1 | 110 | 11/1/2024 | |
2024.10.31 | 107 | 11/1/2024 | |
2024.10.28 | 140 | 10/28/2024 | |
2024.10.25 | 123 | 10/25/2024 | |
2024.10.25-beta | 96 | 10/25/2024 |
基于SqlSugar进行封装使用