项目引用更新

This commit is contained in:
陈淳
2022-07-13 10:32:43 +08:00
parent 300d8224ec
commit 7fe9a6c900
17 changed files with 977 additions and 21 deletions

View File

@@ -10,7 +10,7 @@ namespace Yi.Framework.WebCore.MiddlewareExtend
{
public static class SqlsugarExtension
{
public static void AddSqlsugarServer(this IServiceCollection services)
public static void AddSqlsugarServer(this IServiceCollection services, Action<SqlSugarClient> action = null)
{
@@ -61,6 +61,10 @@ namespace Yi.Framework.WebCore.MiddlewareExtend
},
db =>
{
if (action.IsNotNull())
{
action(db);
}
db.Aop.DataExecuting = (oldValue, entityInfo) =>
{