- Adds Support for Composite Types
- Adds NodaTime Support to PostgreSQLCopyHelper
- Adds the Property
TargetTable
and associated classes to get the Table and Column mapping
- Adds a dependency to
Microsoft.Bcl.AsyncInterfaces
to enableIAsyncEnumerable
for .NET 4.6.1 and netstandard 2.0
- Executes asynchronous methods without the
SynchronizationContext
to prevent blocking from the UI Thread
- Exposes ability to use IAsyncEnumerable
- Better support when cancelling
SaveAllAsync
- Takes advantage of C#8 await using (IAsyncDisposable)
- Bumps to Npgsql
4.1.1
which removes some unintentional breaking changes in the below library
- Drops support for
net45
,net451
andnet452
- Upgrades Npgsql to
4.1
- SaveAll now returns a count of rows written
- Async Support
Added the following methods for improved DateTime
and DateTimeOffset
mappings, see Issue #9:
MapTimeStampTz
(forDateTimeOffset
,DateTimeOffset?
)MapTimeTz
-
Reference Npgsql
4.0.4
, see Issue #38.
This release reverted the behavior of automatically quoting all identifiers. In order to quote case-sensitive identifiers the new method UsePostgresQuoting
can be used like this:
var copyHelper = new PostgreSQLCopyHelper<MixedCaseEntity>("sample", "MixedCaseEntity")
.UsePostgresQuoting()
.MapInteger("Property_One", x => x.Property_One)
.MapText("Property_Two", x => x.Property_Two);
In this release PostgreSQL-compatible quoting for case-sensitive identifiers is added as default. That means: All identifiers, such as schema names, table names and column names containing upper-case (or other special characters) will be quoted automatically.
- Release 2.4.0 reverts this behavior and requires it to be enabled explicitly with the UsePostgresQuoting method.
Fixes the Null Value Handling with Npgsql 4.0.0
, see PostgreSQLCopyHelper Issue #22.
Thanks to @say25 for fixing the bug, adding Unit Tests and improving the code.
This version attempted to fix a Bug regarding null value handling. It didn't fix the problem and this version shouldn't be used. Please update to more recent versions of the library.
Added support for Npgsql 4.0.0
. Thanks to @marklahn for updating the COPY API usage to 4.0 and @wejto for bringing up the Npgsql issues regarding Nullable Types in early Npgsql 4.0.0
releases.
Updated the package depdencies to Npgsql 3.2.6
.
Added Support for mapping String Arrays with the MapArray
method:
MapArray("col_array", x => x.Array)
Adding netstandard1.3
as Target Framework to support .NET Core.
Initial Release.