npgsql / doc

Documentation site for npgsql
http://npgsql.org/
26 stars 74 forks source link

Nullable value types in 8.0 on Release Notes vs Strongly Typed Parameters on Basic Usage #344

Open swsch opened 3 months ago

swsch commented 3 months ago

Basic Usage seems to be not up to date:

Release Notes > 8.0 > Other Features:

Allow using nullable value types with the generic NpgsqlParameter<T>, e.g. NpgsqlParameter<int?>

Basic usage > Parameters > Strongly Typed Parameters:

As an alternative, you can use NpgsqlParameter<T>. ... Unfortunately, using nullable value types (in order to send nulls) isn't yet supported - you'll have to use the non-generic parameter API for that.