Skip to content

Commit 233e19d

Browse files
Update version to 9.0.2 and target .NET Framework 4.72
- Updated version prefix in `Directory.Build.props` from `9.0.1` to `9.0.2`. - Changed preprocessor directive in `Command.ExecuteReader.cs` to target .NET Framework 4.72 instead of .NET Standard 2.0. - Removed `await` from `handler(reader)` and `return transform(reader)`, making these calls synchronous.
1 parent 5985677 commit 233e19d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Source/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<RootNamespace>Open.Database.Extensions</RootNamespace>
55

6-
<VersionPrefix>9.0.1</VersionPrefix>
6+
<VersionPrefix>9.0.2</VersionPrefix>
77
<VersionSuffix Condition="'$(Configuration)' == 'Debug'">debug</VersionSuffix>
88

99
<TargetFrameworks>netstandard2.0; netstandard2.1; net8.0; net9.0;</TargetFrameworks>

Source/MSSqlClient/Extensions/Command.ExecuteReader.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static async ValueTask ExecuteReaderAsync(this SqlCommand command,
6060

6161
ConnectionState state = await command.EnsureOpenAsync(cancellationToken).ConfigureAwait(false);
6262
if (state == ConnectionState.Closed) behavior |= CommandBehavior.CloseConnection;
63-
#if NETSTANDARD2_0
63+
#if NET472
6464
#else
6565
await
6666
#endif
@@ -83,7 +83,7 @@ public static async ValueTask ExecuteReaderAsync(this SqlCommand command,
8383
.ConfigureAwait(false);
8484

8585
if (state == ConnectionState.Closed) behavior |= CommandBehavior.CloseConnection;
86-
#if NETSTANDARD2_0
86+
#if NET472
8787
#else
8888
await
8989
#endif
@@ -110,7 +110,7 @@ public static async ValueTask<T> ExecuteReaderAsync<T>(this SqlCommand command,
110110
.ConfigureAwait(false);
111111

112112
if (state == ConnectionState.Closed) behavior |= CommandBehavior.CloseConnection;
113-
#if NETSTANDARD2_0
113+
#if NET472
114114
#else
115115
await
116116
#endif

0 commit comments

Comments
 (0)