RelationalEntityTypeExtensions.SetDeleteStoredProcedure Method

Definition

Overloads

SetDeleteStoredProcedure(IMutableEntityType)

Maps the entity type to a stored procedure for deletes.

SetDeleteStoredProcedure(IConventionEntityType, Boolean)

Maps the entity type to a stored procedure for deletes.

SetDeleteStoredProcedure(IMutableEntityType)

Maps the entity type to a stored procedure for deletes.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableStoredProcedure SetDeleteStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
static member SetDeleteStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableStoredProcedure
<Extension()>
Public Function SetDeleteStoredProcedure (entityType As IMutableEntityType) As IMutableStoredProcedure

Parameters

entityType
IMutableEntityType

The entity type.

Returns

The new stored procedure.

Applies to

SetDeleteStoredProcedure(IConventionEntityType, Boolean)

Maps the entity type to a stored procedure for deletes.

public static Microsoft.EntityFrameworkCore.Metadata.IConventionStoredProcedure? SetDeleteStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool fromDataAnnotation = false);
static member SetDeleteStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionStoredProcedure
<Extension()>
Public Function SetDeleteStoredProcedure (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