Table of Contents

Interface IConventionStoredProcedureParameter

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Represents a stored procedure parameter.

public interface IConventionStoredProcedureParameter : IReadOnlyStoredProcedureParameter, IReadOnlyAnnotatable, IConventionAnnotatable
Inherited Members

Properties

Builder

Gets the builder that can be used to configure this stored procedure parameter.

IConventionStoredProcedureParameterBuilder Builder { get; }

Property Value

IConventionStoredProcedureParameterBuilder

Exceptions

InvalidOperationException

If the stored procedure parameter has been removed from the model.

StoredProcedure

Gets the stored procedure to which this parameter belongs.

IConventionStoredProcedure StoredProcedure { get; }

Property Value

IConventionStoredProcedure

Methods

GetDirectionConfigurationSource()

Returns the configuration source for Direction.

ConfigurationSource? GetDirectionConfigurationSource()

Returns

ConfigurationSource?

The configuration source for Direction.

GetNameConfigurationSource()

Returns the configuration source for Name.

ConfigurationSource? GetNameConfigurationSource()

Returns

ConfigurationSource?

The configuration source for Name.

SetDirection(ParameterDirection, bool)

Sets the direction of the parameter.

ParameterDirection SetDirection(ParameterDirection direction, bool fromDataAnnotation = false)

Parameters

direction ParameterDirection

The direction of the parameter.

fromDataAnnotation bool

Indicates whether the configuration was specified using a data annotation.

Returns

ParameterDirection

SetName(string, bool)

Sets the parameter name.

string SetName(string name, bool fromDataAnnotation = false)

Parameters

name string

The parameter name.

fromDataAnnotation bool

Indicates whether the configuration was specified using a data annotation.

Returns

string