Skip to content

Generic writing interface to avoid boxing #1639

Closed

Description

@roji

In ADO.NET, parameters are non-generic - you set values on DbParameter.Value which is an object. This is a weakly-typed API that forces value types to be boxed. Add an NpgsqlParameter class with TypedValue, for a strongly-typed API. See https://github.com/dotnet/corefx/issues/8955 for the same issue at the ADO.NET level.

Timing-wise, with the new type mapping API opening up for 3.3, this is the right moment to add support for this feature (since it will impact type handling APIs considerably).

Activity

  1. added this to the milestone on Jul 17, 2017
  2. self-assigned this
    on Jul 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions