Skip to content

Commit

Permalink
fix: 修复WebApi引用7.0MySql,Oracle的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
gmf520 committed Oct 2, 2023
1 parent f48a1ae commit d30481f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions samples/web/Liuliu.Demo.WebApi/Liuliu.Demo.WebApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Import Project="../../../build/version.props" />

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>Liuliu.Demo.Web</RootNamespace>
<UserSecretsId>38c51dba-31f4-4c29-a3b3-49164e38d32f</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
Expand Down Expand Up @@ -42,6 +42,8 @@

<ItemGroup>
<ProjectReference Include="..\..\..\src\OSharp.AutoMapper\OSharp.AutoMapper.csproj" />
<ProjectReference Include="..\..\..\src\OSharp.EntityFrameworkCore.MySql\OSharp.EntityFrameworkCore.MySql.csproj" />
<ProjectReference Include="..\..\..\src\OSharp.EntityFrameworkCore.Oracle\OSharp.EntityFrameworkCore.Oracle.csproj" />
<ProjectReference Include="..\..\..\src\OSharp.EntityFrameworkCore.PostgreSql\OSharp.EntityFrameworkCore.PostgreSql.csproj" />
<ProjectReference Include="..\..\..\src\OSharp.EntityFrameworkCore.Sqlite\OSharp.EntityFrameworkCore.Sqlite.csproj" />
<ProjectReference Include="..\..\..\src\OSharp.EntityFrameworkCore.SqlServer\OSharp.EntityFrameworkCore.SqlServer.csproj" />
Expand All @@ -53,11 +55,6 @@
<ProjectReference Include="..\..\..\src\OSharp.Swagger\OSharp.Swagger.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
<ProjectReference Include="..\..\..\src\OSharp.EntityFrameworkCore.MySql\OSharp.EntityFrameworkCore.MySql.csproj" />
<ProjectReference Include="..\..\..\src\OSharp.EntityFrameworkCore.Oracle\OSharp.EntityFrameworkCore.Oracle.csproj" />
</ItemGroup>

<ItemGroup>
<Folder Include="Migrations\" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// <last-editor>郭明锋</last-editor>
// <last-date>2018-08-13 20:35</last-date>
// -----------------------------------------------------------------------
#if NET6_0

using System;
using System.ComponentModel;

Expand Down Expand Up @@ -46,4 +46,3 @@ protected override DefaultDbContext CreateDbContext(IServiceProvider scopedProvi
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
// <last-date>2019-04-18 20:57</last-date>
// -----------------------------------------------------------------------

#if NET6_0

using System;
using System.ComponentModel;
Expand Down Expand Up @@ -48,4 +47,3 @@ protected override DefaultDbContext CreateDbContext(IServiceProvider scopedProvi
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
},
"Redis": {
"Configuration": "localhost",
"InstanceName": "Liuliu.Demo:"
"InstanceName": "Liuliu.Demo.Dev:"
},
"Swagger": {
"Endpoints": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Import Project="../../build/version.props" />

<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<PackageId>OSharp.EntityFrameworkCore.Oracle</PackageId>
<Description>OSharp 数据访问组件,封装EntityFrameworkCore的Oracle数据访问功能的实现</Description>
<Summary>OSharp 数据访问组件Oracle</Summary>
Expand Down

0 comments on commit d30481f

Please sign in to comment.