Demo
2024-06-20 4e578fcfc6f4b1a57f3e03efafd5ede03d577783
Wms/Wms/Startup.cs
@@ -21,6 +21,7 @@
using Microsoft.Extensions.Options;
using Microsoft.AspNetCore.Http;
using SqlSugar;
using Utility.Job;
namespace Wms
{
@@ -128,6 +129,9 @@
            services.AddScoped<UnitOfWorkAttribute>();
            services.AddSingleton<ISqlSugarClient>(DataContext.Db); // 单例注册
            services.AddTransient<IUnitOfWork, SqlSugarUnitOfWork>(); // 事务与工作单元注册
            services.AddHostedService<HostedService>();
            services.AddSingleton<SchedulerCenter>();
        }
        public void ConfigureContainer(ContainerBuilder builder)
        {