1
heshaofeng
2026-03-25 37454e625df68d40897112b2e8c2e3cf4d7163e3
项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_Core/Extensions/DbSetup.cs
@@ -1,10 +1,12 @@
锘縰sing Microsoft.Extensions.DependencyInjection;
using System;
锘縰sing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using WIDESEA_Core.Helper;
using WIDESEA_Core.Seed;
using WIDESEA_Core.Util;
namespace WIDESEA_Core
{
@@ -16,9 +18,15 @@
        public static void AddDbSetup(this IServiceCollection services)
        {
            if (services == null) throw new ArgumentNullException(nameof(services));
            services.AddScoped<DBSeed>();
            services.AddScoped<DBContext>();
            // 娉ㄥ唽IHttpClientFactory
            services.AddHttpClient();
            // 娉ㄥ唽HttpHelper
            services.AddScoped<HttpClientHelper>();
        }
    }
}