Skip to content

Commit

Permalink
Correct docs on NpgsqlParameterCollection (npgsql#5786)
Browse files Browse the repository at this point in the history
  • Loading branch information
roji authored Jul 11, 2024
1 parent a9bfb4a commit 30ba2dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Npgsql/NpgsqlParameterCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ internal void ChangeParameterName(NpgsqlParameter parameter, string? value)
/// Adds the specified <see cref="NpgsqlParameter"/> object to the <see cref="NpgsqlParameterCollection"/>.
/// </summary>
/// <param name="value">The <see cref="NpgsqlParameter"/> to add to the collection.</param>
/// <returns>The index of the new <see cref="NpgsqlParameter"/> object.</returns>
/// <returns>The parameter that was added.</returns>
public NpgsqlParameter Add(NpgsqlParameter value)
{
if (value is null)
Expand Down Expand Up @@ -315,7 +315,7 @@ public NpgsqlParameter AddWithValue(NpgsqlDbType parameterType, object value)
/// </summary>
/// <param name="parameterName">The name of the parameter.</param>
/// <param name="parameterType">One of the <see cref="DbType"/> values.</param>
/// <returns>The index of the new <see cref="NpgsqlParameter"/> object.</returns>
/// <returns>The parameter that was added.</returns>
public NpgsqlParameter Add(string parameterName, NpgsqlDbType parameterType)
=> Add(new NpgsqlParameter(parameterName, parameterType));

Expand All @@ -326,7 +326,7 @@ public NpgsqlParameter Add(string parameterName, NpgsqlDbType parameterType)
/// <param name="parameterName">The name of the parameter.</param>
/// <param name="parameterType">One of the <see cref="DbType"/> values.</param>
/// <param name="size">The length of the column.</param>
/// <returns>The index of the new <see cref="NpgsqlParameter"/> object.</returns>
/// <returns>The parameter that was added.</returns>
public NpgsqlParameter Add(string parameterName, NpgsqlDbType parameterType, int size)
=> Add(new NpgsqlParameter(parameterName, parameterType, size));

Expand All @@ -338,7 +338,7 @@ public NpgsqlParameter Add(string parameterName, NpgsqlDbType parameterType, int
/// <param name="parameterType">One of the <see cref="DbType"/> values.</param>
/// <param name="size">The length of the column.</param>
/// <param name="sourceColumn">The name of the source column.</param>
/// <returns>The index of the new <see cref="NpgsqlParameter"/> object.</returns>
/// <returns>The parameter that was added.</returns>
public NpgsqlParameter Add(string parameterName, NpgsqlDbType parameterType, int size, string sourceColumn)
=> Add(new NpgsqlParameter(parameterName, parameterType, size, sourceColumn));

Expand Down

0 comments on commit 30ba2dd

Please sign in to comment.