Skip to content

Commit cfcf0df

Browse files
authored
2.5.1 (#52)
1 parent 8e942c3 commit cfcf0df

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

26.9 KB
Binary file not shown.
47.2 KB
Binary file not shown.

src/PostgreSQLCopyHelper/PostgreSQLCopyHelper.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,10 @@ public ValueTask<ulong> SaveAllAsync(NpgsqlConnection connection, IEnumerable<TE
5656

5757
private async ValueTask<ulong> DoSaveAllAsync(NpgsqlConnection connection, IEnumerable<TEntity> entities)
5858
{
59-
using (var binaryCopyWriter = connection.BeginBinaryImport(GetCopyCommand()))
60-
{
61-
await WriteToStream(binaryCopyWriter, entities);
59+
await using var binaryCopyWriter = connection.BeginBinaryImport(GetCopyCommand());
60+
await WriteToStream(binaryCopyWriter, entities);
6261

63-
return await binaryCopyWriter.CompleteAsync();
64-
}
62+
return await binaryCopyWriter.CompleteAsync();
6563
}
6664

6765
public PostgreSQLCopyHelper<TEntity> UsePostgresQuoting(bool enabled = true)

src/PostgreSQLCopyHelper/PostgreSQLCopyHelper.csproj

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

33
<PropertyGroup>
44
<TargetFrameworks>net461;netstandard2.0;netstandard2.1</TargetFrameworks>
5-
<Version>2.5.0</Version>
5+
<Version>2.5.1</Version>
66
</PropertyGroup>
77

88
<ItemGroup>
99
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19367-01">
1010
<PrivateAssets>all</PrivateAssets>
1111
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1212
</PackageReference>
13-
<PackageReference Include="Npgsql" Version="4.1.0" />
13+
<PackageReference Include="Npgsql" Version="4.1.1" />
1414
</ItemGroup>
1515

1616
</Project>

0 commit comments

Comments
 (0)