Table of Contents

Interface IStoreStoredProcedure

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

Represents a stored procedure in a database.

public interface IStoreStoredProcedure : ITableBase, IAnnotatable, IReadOnlyAnnotatable
Inherited Members

Properties

EntityTypeMappings

Gets the entity type mappings.

IEnumerable<IStoredProcedureMapping> EntityTypeMappings { get; }

Property Value

IEnumerable<IStoredProcedureMapping>

Parameters

Gets the parameters for this stored procedure.

IReadOnlyList<IStoreStoredProcedureParameter> Parameters { get; }

Property Value

IReadOnlyList<IStoreStoredProcedureParameter>

ResultColumns

Gets the columns defined for the returned row set.

IEnumerable<IStoreStoredProcedureResultColumn> ResultColumns { get; }

Property Value

IEnumerable<IStoreStoredProcedureResultColumn>

ReturnValue

Gets the return for this stored procedure.

IStoreStoredProcedureReturnValue? ReturnValue { get; }

Property Value

IStoreStoredProcedureReturnValue

StoredProcedures

Gets the associated model stored procedures.

IEnumerable<IStoredProcedure> StoredProcedures { get; }

Property Value

IEnumerable<IStoredProcedure>

Methods

FindParameter(IProperty)

Gets the parameter mapped to the given property. Returns null if no parameter is mapped to the given property.

IStoreStoredProcedureParameter? FindParameter(IProperty property)

Parameters

property IProperty

Returns

IStoreStoredProcedureParameter

FindParameter(string)

Gets the parameter with the given name. Returns null if no parameter with the given name is defined for the returned row set.

IStoreStoredProcedureParameter? FindParameter(string name)

Parameters

name string

Returns

IStoreStoredProcedureParameter

FindResultColumn(IProperty)

Gets the result column mapped to the given property. Returns null if no result column is mapped to the given property.

IStoreStoredProcedureResultColumn? FindResultColumn(IProperty property)

Parameters

property IProperty

Returns

IStoreStoredProcedureResultColumn

FindResultColumn(string)

Gets the result column with the given name. Returns null if no result column with the given name is defined for the returned row set.

IStoreStoredProcedureResultColumn? FindResultColumn(string name)

Parameters

name string

Returns

IStoreStoredProcedureResultColumn

ToDebugString(MetadataDebugStringOptions, int)

Creates a human-readable representation of the given metadata.

Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.

string ToDebugString(MetadataDebugStringOptions options = 0, int indent = 0)

Parameters

options MetadataDebugStringOptions

Options for generating the string.

indent int

The number of indent spaces to use before each new line.

Returns

string

A human-readable representation.