Interface IConventionStoredProcedureParameterBuilder
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Builders
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
Provides a simple API for configuring a IConventionStoredProcedureParameter.
public interface IConventionStoredProcedureParameterBuilder : IConventionAnnotatableBuilder
Remarks
See Model building conventions for more information and examples.
Properties
Metadata
The stored procedure parameter metadata that is being built.
IConventionStoredProcedureParameter Metadata { get; }
Property Value
Methods
CanSetDirection(ParameterDirection, bool)
Returns a value indicating whether the given direction can be configured on the corresponding stored procedure parameter.
bool CanSetDirection(ParameterDirection direction, bool fromDataAnnotation = false)
Parameters
direction
ParameterDirectionThe direction.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
CanSetName(string?, bool)
Returns a value indicating whether the given parameter name can be set.
bool CanSetName(string? name, bool fromDataAnnotation = false)
Parameters
name
stringThe name of the parameter.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
Remarks
See Modeling entity types and relationships for more information and examples.
HasDirection(ParameterDirection, bool)
Sets the direction of the stored procedure parameter.
IConventionStoredProcedureParameterBuilder? HasDirection(ParameterDirection direction, bool fromDataAnnotation = false)
Parameters
direction
ParameterDirectionThe direction.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
- IConventionStoredProcedureParameterBuilder
The same builder instance if the configuration was applied, null otherwise.
HasName(string, bool)
Configures the parameter name.
IConventionStoredProcedureParameterBuilder? HasName(string name, bool fromDataAnnotation = false)
Parameters
name
stringThe name of the parameter.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
- IConventionStoredProcedureParameterBuilder
The same builder instance if the configuration was applied, null otherwise.
Remarks
See Modeling entity types and relationships for more information and examples.