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
-
IReadOnlyAnnotatableIAnnotatable
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
RuntimeEntityTypeThe mapped entity type.
name
stringThe name.
schema
stringThe schema.
rowsAffectedReturned
boolWhether 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
stringThe name of the parameter.
direction
ParameterDirectionThe direction.
forRowsAffected
boolWhether the parameter holds the rows affected.
propertyName
stringThe name of the corresponding property.
forOriginalValue
bool?Whether the parameter holds the original value.
Returns
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
stringThe name of the result column.
forRowsAffected
boolWhether the column holds the rows affected.
propertyName
stringThe name of the corresponding property.
Returns
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()