Skip to content

Commit b5506b9

Browse files
committed
Complete XMLDocs for SqlCommandExtentions
Some of the methods were missing documentation for the optional `sqlParameter` parameter. Whoops.
1 parent c97dcb3 commit b5506b9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

OnTopic.Data.Sql/SqlCommandExtensions.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ internal static class SqlCommandExtensions {
2727
/// Retrieves the return code from a stored procedure.
2828
/// </summary>
2929
/// <param name="command">The SQL command object.</param>
30+
/// <param name="sqlParameter">The name of the SQL parameter to retrieve as the return code.</param>
3031
internal static int GetReturnCode(this SqlCommand command, string sqlParameter = "ReturnCode") {
3132
Contract.Assume<InvalidOperationException>(
3233
command.Parameters.Contains($"@{sqlParameter}"),
@@ -46,9 +47,7 @@ internal static int GetReturnCode(this SqlCommand command, string sqlParameter =
4647
/// Adds a SQL parameter to a command object, additionally setting the specified parameter direction.
4748
/// </summary>
4849
/// <param name="command">The SQL command object.</param>
49-
/// <param name="sqlParameter">The SQL parameter.</param>
50-
/// <param name="paramDirection">The SQL parameter's directional setting (input-only, output-only, etc.).</param>
51-
/// <param name="sqlDbType">The SQL field data type.</param>
50+
/// <param name="sqlParameter">The name of the SQL output parameter.</param>
5251
internal static void AddOutputParameter(this SqlCommand command, string sqlParameter = "ReturnCode") =>
5352
AddParameter(command, sqlParameter, null, SqlDbType.Int, ParameterDirection.ReturnValue);
5453

0 commit comments

Comments
 (0)