chore: 重构依赖关系

This commit is contained in:
Argo-Tianyi 2021-12-25 12:35:10 +08:00
parent 5eaca5d5dc
commit 9912d73e70
4 changed files with 10 additions and 17 deletions

View File

@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" /> <PackageReference Include="BootstrapBlazor" Version="6.1.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -1,9 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<ItemGroup> <ItemGroup>
<PackageReference Include="BootstrapBlazor" Version="6.1.1-beta09" />
<PackageReference Include="Bootstrap.Security.Blazor" Version="6.0.0" /> <PackageReference Include="Bootstrap.Security.Blazor" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -3,13 +3,8 @@
<PropertyGroup> <PropertyGroup>
<IsWebProject>true</IsWebProject> <IsWebProject>true</IsWebProject>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.1" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\BootstrapAdmin.DataAccess.EFCore\BootstrapAdmin.DataAccess.EFCore.csproj" />
<ProjectReference Include="..\BootstrapAdmin.DataAccess.PetaPoco\BootstrapAdmin.DataAccess.PetaPoco.csproj" /> <ProjectReference Include="..\BootstrapAdmin.DataAccess.PetaPoco\BootstrapAdmin.DataAccess.PetaPoco.csproj" />
</ItemGroup> </ItemGroup>

View File

@ -1,8 +1,7 @@
using BootstrapAdmin.Web.Services; 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;
using BootstrapAdmin.Web.Services.SMS.Tencent;
using System.Text;
namespace Microsoft.Extensions.DependencyInjection namespace Microsoft.Extensions.DependencyInjection
{ {
@ -74,12 +73,12 @@ namespace Microsoft.Extensions.DependencyInjection
services.AddScoped<BootstrapAppContext>(); services.AddScoped<BootstrapAppContext>();
// 增加 EFCore 数据服务 // 增加 EFCore 数据服务
services.AddEFCoreDataAccessServices((provider, option) => //services.AddEFCoreDataAccessServices((provider, option) =>
{ //{
var configuration = provider.GetRequiredService<IConfiguration>(); // var configuration = provider.GetRequiredService<IConfiguration>();
var connString = configuration.GetConnectionString("bb"); // var connString = configuration.GetConnectionString("bb");
option.UseSqlite(connString); // option.UseSqlite(connString);
}); //});
// 增加 PetaPoco 数据服务 // 增加 PetaPoco 数据服务
services.AddPetaPocoDataAccessServices(); services.AddPetaPocoDataAccessServices();