Skip to content

Commit b99c5f4

Browse files
committed
update to net8.0
1 parent bf07ae2 commit b99c5f4

File tree

63 files changed

+243
-488
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+243
-488
lines changed

Examples/aspnetcore_transaction/aspnetcore_transaction.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66

77
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -11,8 +11,8 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="FreeSql.DbContext" Version="3.2.669" />
15-
<PackageReference Include="FreeSql.Provider.Sqlite" Version="3.2.669" />
14+
<PackageReference Include="FreeSql.DbContext" Version="3.2.802" />
15+
<PackageReference Include="FreeSql.Provider.Sqlite" Version="3.2.802" />
1616
<PackageReference Include="Rougamo.Fody" Version="1.1.1" />
1717
<PackageReference Include="System.Text.Encoding.CodePages" Version="5.0.0" />
1818
</ItemGroup>

Examples/base_entity/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ static void Main(string[] args)
837837

838838

839839
var now_to_timezone = "";
840-
var timeOffset = (int)TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).TotalMinutes;
840+
var timeOffset = (int)DateTime.Now.Subtract(DateTime.UtcNow).TotalMinutes;
841841
if (timeOffset == 0) now_to_timezone = "systimestamp()";
842842
else
843843
{

Examples/base_entity/base_entity.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<PlatformTarget>AnyCPU</PlatformTarget>
77
</PropertyGroup>
88

Examples/benchmarker/benchmarker.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
99
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
1010
<PackageReference Include="Dapper" Version="2.0.123" />
11-
<PackageReference Include="Microsoft.Data.SqlClient" Version="4.1.0" />
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.17" />
13-
<PackageReference Include="SqlSugarCore" Version="5.0.9.1" />
11+
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.1" />
12+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />
13+
<PackageReference Include="sqlSugarCore" Version="5.1.3.38" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

Examples/dbcontext_01/dbcontext_01.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
66
</PropertyGroup>
77

@@ -12,7 +12,7 @@
1212
</PropertyGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="System.Text.Encoding.CodePages" Version="5.0.0" />
15+
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

Examples/efcore_to_freesql/FreeSqlExtensions/CodeFirstExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
public static class CodeFirstExtensions
1212
{
1313

14-
public static void ConfigEntity(this ICodeFirst codeFirst, IModel efmodel)
14+
public static void ConfigEntity(this ICodeFirst codeFirst, IMutableModel efmodel)
1515
{
1616

1717
foreach (var type in efmodel.GetEntityTypes())

Examples/efcore_to_freesql/efcore_to_freesql.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.0" />
9+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

Examples/orm_vs/orm_vs.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
99
<PackageReference Include="Dapper" Version="2.0.123" />
10-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.0" />
11-
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="7.0.0" />
12-
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="7.0.0-alpha.1" />
10+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />
1311
<PackageReference Include="sqlSugarCore" Version="5.1.3.38" />
1412
</ItemGroup>
1513

Examples/repository_01/repository_01.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="System.Text.Encoding.CodePages" Version="5.0.0" />
9+
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

Examples/restful/restful.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="System.Text.Encoding.CodePages" Version="5.0.0" />
9+
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

0 commit comments

Comments
 (0)