Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic writing interface to avoid boxing #1639

Closed
roji opened this issue Jul 17, 2017 · 0 comments
Closed

Generic writing interface to avoid boxing #1639

roji opened this issue Jul 17, 2017 · 0 comments
Assignees
Milestone

Comments

@roji
Copy link
Member

roji commented Jul 17, 2017

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant