From 17946bdf30331712ff42bd15567f8aad4a7ee6cd Mon Sep 17 00:00:00 2001 From: igeekfan Date: Sat, 16 Mar 2024 14:10:51 +0800 Subject: [PATCH] Add UnitOfWorkManager service --- src/LinCms.Web/Startup/ServiceCollectionExtensions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LinCms.Web/Startup/ServiceCollectionExtensions.cs b/src/LinCms.Web/Startup/ServiceCollectionExtensions.cs index f56708e2..ede4a7e2 100644 --- a/src/LinCms.Web/Startup/ServiceCollectionExtensions.cs +++ b/src/LinCms.Web/Startup/ServiceCollectionExtensions.cs @@ -243,6 +243,7 @@ public static IServiceCollection AddFreeSql(this IServiceCollection services, IC services.AddSingleton(fsql); services.AddFreeKitCore(typeof(long)); + services.AddUnitOfWorkManager(); services.Configure(u => {