Table of Contents

Interface IStoredProcedure

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

Represents a stored procedure in a model.

public interface IStoredProcedure : IReadOnlyStoredProcedure, IReadOnlyAnnotatable, IAnnotatable
Inherited Members

Properties

EntityType

Gets the entity type in which this stored procedure is defined.

IEntityType EntityType { get; }

Property Value

IEntityType

Name

Gets the name of the stored procedure in the database.

string Name { get; }

Property Value

string

Parameters

Gets the parameters for this stored procedure.

IReadOnlyList<IStoredProcedureParameter> Parameters { get; }

Property Value

IReadOnlyList<IStoredProcedureParameter>

ResultColumns

Gets the columns of the result for this stored procedure.

IReadOnlyList<IStoredProcedureResultColumn> ResultColumns { get; }

Property Value

IReadOnlyList<IStoredProcedureResultColumn>

StoreStoredProcedure

Gets the associated database stored procedure.

IStoreStoredProcedure StoreStoredProcedure { get; }

Property Value

IStoreStoredProcedure

Methods

FindOriginalValueParameter(string)

Returns the original value parameter corresponding to the given property.

IStoredProcedureParameter? FindOriginalValueParameter(string propertyName)

Parameters

propertyName string

The name of a property.

Returns

IStoredProcedureParameter

The original value parameter corresponding to the given property if found; null otherwise.

FindParameter(string)

Returns the parameter corresponding to the given property.

IStoredProcedureParameter? FindParameter(string propertyName)

Parameters

propertyName string

The name of a property.

Returns

IStoredProcedureParameter

The parameter corresponding to the given property if found; null otherwise.

FindResultColumn(string)

Returns the result column corresponding to the given property.

IStoredProcedureResultColumn? FindResultColumn(string propertyName)

Parameters

propertyName string

The name of a property.

Returns

IStoredProcedureResultColumn

The result column corresponding to the given property if found; null otherwise.

FindRowsAffectedParameter()

Returns the rows affected parameter.

IStoredProcedureParameter? FindRowsAffectedParameter()

Returns

IStoredProcedureParameter

The rows affected parameter if found; null otherwise.

FindRowsAffectedResultColumn()

Returns the rows affected result column.

IStoredProcedureResultColumn? FindRowsAffectedResultColumn()

Returns

IStoredProcedureResultColumn

The rows affected result column if found; null otherwise.

GetStoreIdentifier()

Returns the store identifier of this stored procedure.

StoreObjectIdentifier GetStoreIdentifier()

Returns

StoreObjectIdentifier

The store identifier.