RelationalEntityTypeExtensions.SetInsertStoredProcedure Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetInsertStoredProcedure(IConventionEntityType, Boolean) |
Maps the entity type to a stored procedure for inserts. |
SetInsertStoredProcedure(IMutableEntityType) |
Maps the entity type to a stored procedure for inserts. |
SetInsertStoredProcedure(IConventionEntityType, Boolean)
Maps the entity type to a stored procedure for inserts.
public static Microsoft.EntityFrameworkCore.Metadata.IConventionStoredProcedure? SetInsertStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool fromDataAnnotation = false);
static member SetInsertStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionStoredProcedure
<Extension()>
Public Function SetInsertStoredProcedure (entityType As IConventionEntityType, Optional fromDataAnnotation As Boolean = false) As IConventionStoredProcedure
Parameters
- entityType
- IConventionEntityType
The entity type.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The new stored procedure.
Applies to
SetInsertStoredProcedure(IMutableEntityType)
Maps the entity type to a stored procedure for inserts.
public static Microsoft.EntityFrameworkCore.Metadata.IMutableStoredProcedure SetInsertStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
static member SetInsertStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableStoredProcedure
<Extension()>
Public Function SetInsertStoredProcedure (entityType As IMutableEntityType) As IMutableStoredProcedure
Parameters
- entityType
- IMutableEntityType
The entity type.
Returns
The new stored procedure.
Applies to
Entity Framework