Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

NpgsqlParameter<T> converter binding semantics #5142

Copy link
Copy link

Description

@NinoFloris
Issue body actions

Currently we kind of blend the strongly typed and weakly typed behaviors.

In #5123 I've changed this to be strongly typed throughout the binding process for NpgsqlParameter<T>, unless T = object. This also affects setting values of types deriving from T. Instead we will always bind strongly to T. If runtime lookups are preferred NpgsqlParameter or NpgsqlParameter<object> should be used.

As a consequence we also don't interpret DBNull as a db null value when T = DBNull (by default, a converter can still choose to do so).

Practically nothing much really changes, this is just a formalization of the desired behavior. We continue to do the expected thing for NpgsqlParameter and NpgsqlParameter<object>, which should cover the legitimate cases.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.