Skip to content

Commit 1995fcd

Browse files
committed
webapi引用mysql,oracle项目
1 parent df6b782 commit 1995fcd

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

samples/web/Liuliu.Demo.WebApi/Liuliu.Demo.WebApi.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242

4343
<ItemGroup>
4444
<ProjectReference Include="..\..\..\src\OSharp.AutoMapper\OSharp.AutoMapper.csproj" />
45+
<ProjectReference Include="..\..\..\src\OSharp.EntityFrameworkCore.MySql\OSharp.EntityFrameworkCore.MySql.csproj" />
46+
<ProjectReference Include="..\..\..\src\OSharp.EntityFrameworkCore.Oracle\OSharp.EntityFrameworkCore.Oracle.csproj" />
4547
<ProjectReference Include="..\..\..\src\OSharp.EntityFrameworkCore.PostgreSql\OSharp.EntityFrameworkCore.PostgreSql.csproj" />
4648
<ProjectReference Include="..\..\..\src\OSharp.EntityFrameworkCore.Sqlite\OSharp.EntityFrameworkCore.Sqlite.csproj" />
4749
<ProjectReference Include="..\..\..\src\OSharp.EntityFrameworkCore.SqlServer\OSharp.EntityFrameworkCore.SqlServer.csproj" />

samples/web/Liuliu.Demo.WebApi/appsettings.Development.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"DbContexts": {
3131
"SqlServer": {
3232
"DbContextTypeName": "OSharp.Entity.DefaultDbContext,OSharp.EntityFrameworkCore",
33-
"ConnectionString": "Server=.;Database=osharpns-api-dev2;User Id=sa;Password=Abc123456!;TrustServerCertificate=True;",
33+
"ConnectionString": "Server=.;Database=osharpns-api-dev-snow;User Id=sa;Password=Abc123456!;TrustServerCertificate=True;",
3434
"DatabaseType": "SqlServer",
3535
"AuditEntityEnabled": true,
3636
"AutoMigrationEnabled": true

src/OSharp.EntityFrameworkCore.Oracle/OSharp.EntityFrameworkCore.Oracle.csproj

-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
<ItemGroup Condition="'$(TargetFramework)'=='net7.0'">
1818
<PackageReference Include="Oracle.EntityFrameworkCore" Version="[7.21.11, 8.0.0)" />
1919
</ItemGroup>
20-
<ItemGroup Condition="'$(TargetFramework)'=='net7.0'">
21-
<PackageReference Include="Oracle.EntityFrameworkCore" Version="[7.21.8, 8.0.0)" />
22-
</ItemGroup>
2320
<ItemGroup>
2421
<ProjectReference Include="..\OSharp.EntityFrameworkCore\OSharp.EntityFrameworkCore.csproj" />
2522
</ItemGroup>

0 commit comments

Comments
 (0)