From 9912d73e70a85199bd85434c0ff8713a885b9bc3 Mon Sep 17 00:00:00 2001 From: Argo-Tianyi Date: Sat, 25 Dec 2021 12:35:10 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=87=8D=E6=9E=84=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BootstrapAdmin.DataAccess.EFCore.csproj | 3 ++- .../BootstrapAdmin.Web.Core.csproj | 2 -- .../BootstrapAdmin.Web.csproj | 5 ----- .../Extensions/ServicesExtensions.cs | 17 ++++++++--------- 4 files changed, 10 insertions(+), 17 deletions(-) diff --git a/src/blazor/admin/BootstrapAdmin.DataAccess.EFCore/BootstrapAdmin.DataAccess.EFCore.csproj b/src/blazor/admin/BootstrapAdmin.DataAccess.EFCore/BootstrapAdmin.DataAccess.EFCore.csproj index 173c2797..221b6290 100644 --- a/src/blazor/admin/BootstrapAdmin.DataAccess.EFCore/BootstrapAdmin.DataAccess.EFCore.csproj +++ b/src/blazor/admin/BootstrapAdmin.DataAccess.EFCore/BootstrapAdmin.DataAccess.EFCore.csproj @@ -1,7 +1,8 @@  - + + diff --git a/src/blazor/admin/BootstrapAdmin.Web.Core/BootstrapAdmin.Web.Core.csproj b/src/blazor/admin/BootstrapAdmin.Web.Core/BootstrapAdmin.Web.Core.csproj index eab97072..af43bcc3 100644 --- a/src/blazor/admin/BootstrapAdmin.Web.Core/BootstrapAdmin.Web.Core.csproj +++ b/src/blazor/admin/BootstrapAdmin.Web.Core/BootstrapAdmin.Web.Core.csproj @@ -1,9 +1,7 @@  - - diff --git a/src/blazor/admin/BootstrapAdmin.Web/BootstrapAdmin.Web.csproj b/src/blazor/admin/BootstrapAdmin.Web/BootstrapAdmin.Web.csproj index 38f125b3..cbb79777 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/BootstrapAdmin.Web.csproj +++ b/src/blazor/admin/BootstrapAdmin.Web/BootstrapAdmin.Web.csproj @@ -3,13 +3,8 @@ true - - - - - diff --git a/src/blazor/admin/BootstrapAdmin.Web/Extensions/ServicesExtensions.cs b/src/blazor/admin/BootstrapAdmin.Web/Extensions/ServicesExtensions.cs index 389be3a5..36b2c6a0 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Extensions/ServicesExtensions.cs +++ b/src/blazor/admin/BootstrapAdmin.Web/Extensions/ServicesExtensions.cs @@ -1,8 +1,7 @@ using BootstrapAdmin.Web.Services; -using System.Text; -using Microsoft.EntityFrameworkCore; -using BootstrapAdmin.Web.Services.SMS.Tencent; using BootstrapAdmin.Web.Services.SMS; +using BootstrapAdmin.Web.Services.SMS.Tencent; +using System.Text; namespace Microsoft.Extensions.DependencyInjection { @@ -74,12 +73,12 @@ namespace Microsoft.Extensions.DependencyInjection services.AddScoped(); // 增加 EFCore 数据服务 - services.AddEFCoreDataAccessServices((provider, option) => - { - var configuration = provider.GetRequiredService(); - var connString = configuration.GetConnectionString("bb"); - option.UseSqlite(connString); - }); + //services.AddEFCoreDataAccessServices((provider, option) => + //{ + // var configuration = provider.GetRequiredService(); + // var connString = configuration.GetConnectionString("bb"); + // option.UseSqlite(connString); + //}); // 增加 PetaPoco 数据服务 services.AddPetaPocoDataAccessServices();