Skip to content

Commit f007b3f

Browse files
committed
update to .net60
1 parent 30b20c3 commit f007b3f

File tree

19 files changed

+38
-32
lines changed

19 files changed

+38
-32
lines changed

FreeSql.DbContext/FreeSql.DbContext.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net50;netcoreapp31;netcoreapp21;net45;net40</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net60;net50;netcoreapp31;netcoreapp21;net45;net40</TargetFrameworks>
55
<Version>2.6.100</Version>
66
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
77
<Authors>FreeSql;ncc;YeXiangQin</Authors>
@@ -33,11 +33,14 @@
3333
<PropertyGroup Condition="'$(TargetFramework)' == 'net40'">
3434
<DefineConstants>net40</DefineConstants>
3535
</PropertyGroup>
36-
<PropertyGroup Condition="'$(TargetFramework)' == 'net50' or '$(TargetFramework)' == 'netcoreapp31' or '$(TargetFramework)' == 'netcoreapp21'">
36+
<PropertyGroup Condition="'$(TargetFramework)' == 'net60' or '$(TargetFramework)' == 'net50' or '$(TargetFramework)' == 'netcoreapp31' or '$(TargetFramework)' == 'netcoreapp21'">
3737
<DefineConstants>netcoreapp</DefineConstants>
3838
</PropertyGroup>
3939

4040

41+
<ItemGroup Condition="'$(TargetFramework)' == 'net60'">
42+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
43+
</ItemGroup>
4144
<ItemGroup Condition="'$(TargetFramework)' == 'net50'">
4245
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.0" />
4346
</ItemGroup>

FreeSql.Repository/FreeSql.Repository.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net50;netcoreapp31;netcoreapp21;net45;net40</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net60;net50;netcoreapp31;netcoreapp21;net45;net40</TargetFrameworks>
55
<Version>2.6.100</Version>
66
<Authors>FreeSql;ncc;YeXiangQin</Authors>
77
<Description>FreeSql Implementation of General Repository, Support MySql/SqlServer/PostgreSQL/Oracle/Sqlite/Firebird/达梦/人大金仓/神舟通用/翰高/Access, and read/write separation、and split table.</Description>

FreeSql.Tests/FreeSql.Tests.PerformanceTests/FreeSql.Tests.PerformanceTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</PropertyGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="Dapper" Version="2.0.35" />
15+
<PackageReference Include="Dapper" Version="2.0.123" />
1616
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" />
1717
<PackageReference Include="xunit" Version="2.4.1" />
1818
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">

FreeSql.Tests/FreeSql.Tests/FreeSql.Tests.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

@@ -14,10 +14,10 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="Dapper" Version="2.0.78" />
17+
<PackageReference Include="Dapper" Version="2.0.123" />
1818
<PackageReference Include="IdleBus" Version="1.5.2" />
19-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.1" />
20-
<PackageReference Include="Microsoft.Data.SqlClient" Version="2.1.1" />
19+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.0" />
20+
<PackageReference Include="Microsoft.Data.SqlClient" Version="3.0.1" />
2121
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
2222
<PackageReference Include="xunit" Version="2.4.1" />
2323
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">

FreeSql/Internal/CommonProvider/UpdateProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ public IUpdate<T1> AsType(Type entityType)
677677
return this;
678678
}
679679

680-
public string ToSql()
680+
public virtual string ToSql()
681681
{
682682
if (_where.Length == 0 && _source.Any() == false) return null;
683683

Providers/FreeSql.Provider.Dameng/FreeSql.Provider.Dameng.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<ItemGroup>
2222
<None Include="../../logo.png" Pack="true" PackagePath="\" />
2323
<None Include="lib\DmProvider\netstandard2.0\DmProvider.dll" Pack="true" PackagePath="\lib\netstandard2.0\" />
24-
<None Include="lib\DmProvider\net20\DmProvider.dll" Pack="true" PackagePath="\lib\net45\" />
25-
<None Include="lib\DmProvider\net20\DmProvider.dll" Pack="true" PackagePath="\lib\net40\" />
24+
<None Include="lib\DmProvider\net40\DmProvider.dll" Pack="true" PackagePath="\lib\net45\" />
25+
<None Include="lib\DmProvider\net40\DmProvider.dll" Pack="true" PackagePath="\lib\net40\" />
2626
<None Include="lib/**/*.dll">
2727
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
2828
</None>

Providers/FreeSql.Provider.Firebird/FreeSql.Provider.Firebird.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
<None Include="../../logo.png" Pack="true" PackagePath="\" />
2626
</ItemGroup>
2727

28-
<ItemGroup>
28+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
29+
<PackageReference Include="FirebirdSql.Data.FirebirdClient" Version="8.5.3" />
30+
</ItemGroup>
31+
<ItemGroup Condition="'$(TargetFramework)' == 'net452'">
2932
<PackageReference Include="FirebirdSql.Data.FirebirdClient" Version="7.10.1" />
3033
</ItemGroup>
3134

0 commit comments

Comments
 (0)