Skip to content

Commit

Permalink
2.5.1 (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
say25 committed Oct 2, 2019
1 parent 8e942c3 commit cfcf0df
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
Binary file added artifacts/PostgreSQLCopyHelper.2.5.1.nupkg
Binary file not shown.
Binary file not shown.
8 changes: 3 additions & 5 deletions src/PostgreSQLCopyHelper/PostgreSQLCopyHelper.cs
Expand Up @@ -56,12 +56,10 @@ public ValueTask<ulong> SaveAllAsync(NpgsqlConnection connection, IEnumerable<TE

private async ValueTask<ulong> DoSaveAllAsync(NpgsqlConnection connection, IEnumerable<TEntity> entities)
{
using (var binaryCopyWriter = connection.BeginBinaryImport(GetCopyCommand()))
{
await WriteToStream(binaryCopyWriter, entities);
await using var binaryCopyWriter = connection.BeginBinaryImport(GetCopyCommand());
await WriteToStream(binaryCopyWriter, entities);

return await binaryCopyWriter.CompleteAsync();
}
return await binaryCopyWriter.CompleteAsync();
}

public PostgreSQLCopyHelper<TEntity> UsePostgresQuoting(bool enabled = true)
Expand Down
4 changes: 2 additions & 2 deletions src/PostgreSQLCopyHelper/PostgreSQLCopyHelper.csproj
Expand Up @@ -2,15 +2,15 @@

<PropertyGroup>
<TargetFrameworks>net461;netstandard2.0;netstandard2.1</TargetFrameworks>
<Version>2.5.0</Version>
<Version>2.5.1</Version>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19367-01">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Npgsql" Version="4.1.0" />
<PackageReference Include="Npgsql" Version="4.1.1" />
</ItemGroup>

</Project>

0 comments on commit cfcf0df

Please sign in to comment.