Skip to content

Commit ce39516

Browse files
committed
v0.4.0
1 parent 7d7c696 commit ce39516

6 files changed

Lines changed: 20 additions & 14 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<!-- Project properties -->
33
<PropertyGroup>
4-
<LangVersion>13</LangVersion>
4+
<LangVersion>14</LangVersion>
55
</PropertyGroup>
66

77
<!-- NuGet -->

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 IvanGit
3+
Copyright (c) 2024-2025 IvanGit
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

NuExt.System.Data.slnx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<Solution>
2+
<Project Path="src/NuExt.System.Data.csproj" />
3+
<Project Path="tests/NuExt.System.Data.Tests.csproj" />
4+
</Solution>

src/NuExt.System.Data.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.1;netstandard2.0;net9.0;net8.0;net6.0;net462</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.1;netstandard2.0;net10.0;net9.0;net8.0;net462</TargetFrameworks>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7+
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>
78
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
89
<PackageTags>nuext;extensions;database;ado.net;async</PackageTags>
910
<Description>Provides various extensions for data classes.
@@ -16,10 +17,10 @@ System.Data.DataTableExtensions
1617
System.Data.DalBase
1718
System.Data.DbConverter&lt;TDbConnection&gt;
1819
System.Data.IDbContext</Description>
19-
<Version>0.3.3</Version>
20+
<Version>0.4.0</Version>
2021
<RootNamespace />
2122
<GenerateDocumentationFile>True</GenerateDocumentationFile>
22-
<NoWarn>$(NoWarn);1591</NoWarn>
23+
<NoWarn>$(NoWarn);1591;NETSDK1233</NoWarn>
2324
<PackageReadmeFile>README.md</PackageReadmeFile>
2425
<PackageIcon>logo128.png</PackageIcon>
2526
<PackageProjectUrl>https://github.com/IvanGit/NuExt.System.Data</PackageProjectUrl>
@@ -30,7 +31,7 @@ System.Data.IDbContext</Description>
3031
</PropertyGroup>
3132

3233
<ItemGroup Condition="'$(UseNuExtPackages)' == 'true'">
33-
<PackageReference Include="NuExt.System" Version="0.3.3" />
34+
<PackageReference Include="NuExt.System" Version="0.4.0" />
3435
</ItemGroup>
3536

3637
<ItemGroup Condition="'$(UseNuExtPackages)' == 'false'">

tests/ExtensionsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ public void Test1()
4949
{
5050
var row = table.Rows[i];
5151
var (id, name, description, int32Value, int32NullableValue, boolValue) = listTable[i];
52-
Assert.Multiple(() =>
52+
using (Assert.EnterMultipleScope())
5353
{
5454
Assert.That(row["Id"], Is.EqualTo(id));
5555
Assert.That(row["Name"], Is.EqualTo(name));
5656
Assert.That(row["Description"], Is.EqualTo(description ?? (object)DBNull.Value));
5757
Assert.That(row["Int32Value"], Is.EqualTo(int32Value));
5858
Assert.That(row["Int32NullableValue"], Is.EqualTo(int32NullableValue ?? (object)DBNull.Value));
5959
Assert.That(row["BoolValue"], Is.EqualTo(Convert.ToInt32(boolValue)));
60-
});
60+
}
6161
}
6262

6363
Assert.Pass();

tests/NuExt.System.Data.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net9.0;net8.0;net6.0;net462</TargetFrameworks>
4+
<TargetFrameworks>net10.0;net9.0;net8.0;net462</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<IsPackable>false</IsPackable>
88
<IsTestProject>true</IsTestProject>
9+
<NoWarn>$(NoWarn);NETSDK1233</NoWarn>
910
</PropertyGroup>
1011

1112
<ItemGroup>
1213
<PackageReference Include="coverlet.collector" Version="6.0.4">
1314
<PrivateAssets>all</PrivateAssets>
1415
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1516
</PackageReference>
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
17-
<PackageReference Include="NUnit" Version="4.3.2" />
18-
<PackageReference Include="NUnit.Analyzers" Version="4.6.0">
17+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
18+
<PackageReference Include="NUnit" Version="4.4.0" />
19+
<PackageReference Include="NUnit.Analyzers" Version="4.11.2">
1920
<PrivateAssets>all</PrivateAssets>
2021
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2122
</PackageReference>
22-
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
23+
<PackageReference Include="NUnit3TestAdapter" Version="5.2.0" />
2324
</ItemGroup>
2425

2526
<ItemGroup>

0 commit comments

Comments
 (0)