Skip to content

Commit

Permalink
Remove unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriySvyryd authored Aug 15, 2022
1 parent 5c5ccfa commit e1f8829
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,16 @@ public interface IConventionStoredProcedureBuilder : IConventionAnnotatableBuild
/// <summary>
/// Configures a new column that contains the rows affected for this stored procedure if no such column exists.
/// </summary>
/// <param name="propertyName">The property name.</param>
/// <param name="fromDataAnnotation">Indicates whether the configuration was specified using a data annotation.</param>
/// <returns>
/// The builder instance if the configuration was applied, <see langword="null" /> otherwise.
/// </returns>
IConventionStoredProcedureResultColumnBuilder? HasRowsAffectedResultColumn(string propertyName, bool fromDataAnnotation = false);
IConventionStoredProcedureResultColumnBuilder? HasRowsAffectedResultColumn(bool fromDataAnnotation = false);

/// <summary>
/// Returns a value indicating whether a column that contains the rows affected can be used for stored procedure.
/// </summary>
/// <param name="propertyName">The property name.</param>
/// <param name="fromDataAnnotation">Indicates whether the configuration was specified using a data annotation.</param>
/// <returns><see langword="true" /> if the column of the result can be used for the stored procedure.</returns>
bool CanHaveRowsAffectedResultColumn(string propertyName, bool fromDataAnnotation = false);
bool CanHaveRowsAffectedResultColumn(bool fromDataAnnotation = false);
}
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,11 @@ bool IConventionStoredProcedureBuilder.CanHaveResultColumn(string propertyName,

/// <inheritdoc />
[DebuggerStepThrough]
IConventionStoredProcedureResultColumnBuilder? IConventionStoredProcedureBuilder.HasRowsAffectedResultColumn(
string propertyName, bool fromDataAnnotation)
IConventionStoredProcedureResultColumnBuilder? IConventionStoredProcedureBuilder.HasRowsAffectedResultColumn(bool fromDataAnnotation)
=> HasRowsAffectedResultColumn(fromDataAnnotation ? ConfigurationSource.DataAnnotation : ConfigurationSource.Convention);

/// <inheritdoc />
[DebuggerStepThrough]
bool IConventionStoredProcedureBuilder.CanHaveRowsAffectedResultColumn(string propertyName, bool fromDataAnnotation)
bool IConventionStoredProcedureBuilder.CanHaveRowsAffectedResultColumn(bool fromDataAnnotation)
=> CanHaveRowsAffectedResultColumn(fromDataAnnotation ? ConfigurationSource.DataAnnotation : ConfigurationSource.Convention);
}

0 comments on commit e1f8829

Please sign in to comment.