共用方式為


RelationalEntityTypeExtensions.SetInsertStoredProcedure 方法

定義

多載

SetInsertStoredProcedure(IConventionEntityType, Boolean)

將實體類型對應至插入的預存程式。

SetInsertStoredProcedure(IMutableEntityType)

將實體類型對應至插入的預存程式。

SetInsertStoredProcedure(IConventionEntityType, Boolean)

將實體類型對應至插入的預存程式。

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

參數

entityType
IConventionEntityType

實體類型。

fromDataAnnotation
Boolean

指出是否已使用資料批註指定組態。

傳回

新的預存程式。

適用於

SetInsertStoredProcedure(IMutableEntityType)

將實體類型對應至插入的預存程式。

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

參數

entityType
IMutableEntityType

實體類型。

傳回

新的預存程式。

適用於