diff --git a/src/EFCore.Relational/Metadata/Builders/IConventionStoredProcedureBuilder.cs b/src/EFCore.Relational/Metadata/Builders/IConventionStoredProcedureBuilder.cs index 28401288853..5e33363857a 100644 --- a/src/EFCore.Relational/Metadata/Builders/IConventionStoredProcedureBuilder.cs +++ b/src/EFCore.Relational/Metadata/Builders/IConventionStoredProcedureBuilder.cs @@ -142,18 +142,16 @@ public interface IConventionStoredProcedureBuilder : IConventionAnnotatableBuild /// /// Configures a new column that contains the rows affected for this stored procedure if no such column exists. /// - /// The property name. /// Indicates whether the configuration was specified using a data annotation. /// /// The builder instance if the configuration was applied, otherwise. /// - IConventionStoredProcedureResultColumnBuilder? HasRowsAffectedResultColumn(string propertyName, bool fromDataAnnotation = false); + IConventionStoredProcedureResultColumnBuilder? HasRowsAffectedResultColumn(bool fromDataAnnotation = false); /// /// Returns a value indicating whether a column that contains the rows affected can be used for stored procedure. /// - /// The property name. /// Indicates whether the configuration was specified using a data annotation. /// if the column of the result can be used for the stored procedure. - bool CanHaveRowsAffectedResultColumn(string propertyName, bool fromDataAnnotation = false); + bool CanHaveRowsAffectedResultColumn(bool fromDataAnnotation = false); } diff --git a/src/EFCore.Relational/Metadata/Internal/InternalStoredProcedureBuilder.cs b/src/EFCore.Relational/Metadata/Internal/InternalStoredProcedureBuilder.cs index a8265ca4bc0..dcd6e598f6d 100644 --- a/src/EFCore.Relational/Metadata/Internal/InternalStoredProcedureBuilder.cs +++ b/src/EFCore.Relational/Metadata/Internal/InternalStoredProcedureBuilder.cs @@ -489,12 +489,11 @@ bool IConventionStoredProcedureBuilder.CanHaveResultColumn(string propertyName, /// [DebuggerStepThrough] - IConventionStoredProcedureResultColumnBuilder? IConventionStoredProcedureBuilder.HasRowsAffectedResultColumn( - string propertyName, bool fromDataAnnotation) + IConventionStoredProcedureResultColumnBuilder? IConventionStoredProcedureBuilder.HasRowsAffectedResultColumn(bool fromDataAnnotation) => HasRowsAffectedResultColumn(fromDataAnnotation ? ConfigurationSource.DataAnnotation : ConfigurationSource.Convention); /// [DebuggerStepThrough] - bool IConventionStoredProcedureBuilder.CanHaveRowsAffectedResultColumn(string propertyName, bool fromDataAnnotation) + bool IConventionStoredProcedureBuilder.CanHaveRowsAffectedResultColumn(bool fromDataAnnotation) => CanHaveRowsAffectedResultColumn(fromDataAnnotation ? ConfigurationSource.DataAnnotation : ConfigurationSource.Convention); }