Table of Contents

Class RuntimeStoredProcedure

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

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public class RuntimeStoredProcedure : AnnotatableBase, IRuntimeStoredProcedure, IStoredProcedure, IReadOnlyStoredProcedure, IReadOnlyAnnotatable, IAnnotatable
Inheritance
RuntimeStoredProcedure
Implements
IReadOnlyAnnotatable
IAnnotatable

Constructors

RuntimeStoredProcedure(RuntimeEntityType, string, string?, bool)

Initializes a new instance of the RuntimeStoredProcedure class.

public RuntimeStoredProcedure(RuntimeEntityType entityType, string name, string? schema, bool rowsAffectedReturned)

Parameters

entityType RuntimeEntityType

The mapped entity type.

name string

The name.

schema string

The schema.

rowsAffectedReturned bool

Whether this stored procedure returns the number of rows affected.

Properties

DebugView

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual DebugView DebugView { get; }

Property Value

DebugView

EntityType

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

public virtual RuntimeEntityType EntityType { get; set; }

Property Value

RuntimeEntityType

Methods

AddParameter(string, ParameterDirection, bool, string?, bool?)

Adds a new parameter mapped to the property with the given name.

public virtual RuntimeStoredProcedureParameter AddParameter(string name, ParameterDirection direction, bool forRowsAffected, string? propertyName, bool? forOriginalValue)

Parameters

name string

The name of the parameter.

direction ParameterDirection

The direction.

forRowsAffected bool

Whether the parameter holds the rows affected.

propertyName string

The name of the corresponding property.

forOriginalValue bool?

Whether the parameter holds the original value.

Returns

RuntimeStoredProcedureParameter

AddResultColumn(string, bool, string?)

Adds a new column of the result for this stored procedure mapped to the property with the given name

public virtual RuntimeStoredProcedureResultColumn AddResultColumn(string name, bool forRowsAffected, string? propertyName)

Parameters

name string

The name of the result column.

forRowsAffected bool

Whether the column holds the rows affected.

propertyName string

The name of the corresponding property.

Returns

RuntimeStoredProcedureResultColumn

ToString()

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override string ToString()

Returns

string