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.