RelationalEntityTypeBuilderExtensions.InsertUsingStoredProcedure 方法

定義

多載

InsertUsingStoredProcedure(EntityTypeBuilder, Action<StoredProcedureBuilder>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

InsertUsingStoredProcedure(IConventionEntityTypeBuilder, Boolean)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

InsertUsingStoredProcedure(OwnedNavigationBuilder, Action<OwnedNavigationStoredProcedureBuilder>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

InsertUsingStoredProcedure(EntityTypeBuilder, String, Action<StoredProcedureBuilder>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

InsertUsingStoredProcedure(OwnedNavigationBuilder, String, Action<OwnedNavigationStoredProcedureBuilder>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

InsertUsingStoredProcedure(EntityTypeBuilder, String, String, Action<StoredProcedureBuilder>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

InsertUsingStoredProcedure(OwnedNavigationBuilder, String, String, Action<OwnedNavigationStoredProcedureBuilder>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

InsertUsingStoredProcedure<TEntity>(EntityTypeBuilder<TEntity>, Action<StoredProcedureBuilder<TEntity>>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

InsertUsingStoredProcedure<TEntity>(EntityTypeBuilder<TEntity>, String, Action<StoredProcedureBuilder<TEntity>>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

InsertUsingStoredProcedure<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<StoredProcedureBuilder<TEntity>>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

InsertUsingStoredProcedure<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity, TDependentEntity>>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

InsertUsingStoredProcedure<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity, TDependentEntity>>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

InsertUsingStoredProcedure<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity, TDependentEntity>>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

InsertUsingStoredProcedure(EntityTypeBuilder, Action<StoredProcedureBuilder>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder InsertUsingStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder> buildAction);
static member InsertUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function InsertUsingStoredProcedure (entityTypeBuilder As EntityTypeBuilder, buildAction As Action(Of StoredProcedureBuilder)) As EntityTypeBuilder

參數

entityTypeBuilder
EntityTypeBuilder

要設定之實體類型的產生器。

buildAction
Action<StoredProcedureBuilder>

執行預存程式組態的動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性和儲存資料模型。

適用於

InsertUsingStoredProcedure(IConventionEntityTypeBuilder, Boolean)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionStoredProcedureBuilder? InsertUsingStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, bool fromDataAnnotation = false);
static member InsertUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionStoredProcedureBuilder
<Extension()>
Public Function InsertUsingStoredProcedure (entityTypeBuilder As IConventionEntityTypeBuilder, Optional fromDataAnnotation As Boolean = false) As IConventionStoredProcedureBuilder

參數

entityTypeBuilder
IConventionEntityTypeBuilder

要設定之實體類型的產生器。

fromDataAnnotation
Boolean

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

傳回

如果已套用組態,則為產生器實例, null 否則為 。

適用於

InsertUsingStoredProcedure(OwnedNavigationBuilder, Action<OwnedNavigationStoredProcedureBuilder>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder InsertUsingStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder> buildAction);
static member InsertUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function InsertUsingStoredProcedure (ownedNavigationBuilder As OwnedNavigationBuilder, buildAction As Action(Of OwnedNavigationStoredProcedureBuilder)) As OwnedNavigationBuilder

參數

ownedNavigationBuilder
OwnedNavigationBuilder

要設定之實體類型的產生器。

buildAction
Action<OwnedNavigationStoredProcedureBuilder>

執行預存程式組態的動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性和儲存資料模型。

適用於

InsertUsingStoredProcedure(EntityTypeBuilder, String, Action<StoredProcedureBuilder>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder InsertUsingStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder> buildAction);
static member InsertUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function InsertUsingStoredProcedure (entityTypeBuilder As EntityTypeBuilder, name As String, buildAction As Action(Of StoredProcedureBuilder)) As EntityTypeBuilder

參數

entityTypeBuilder
EntityTypeBuilder

要設定之實體類型的產生器。

name
String

資料庫中預存程式的名稱。

buildAction
Action<StoredProcedureBuilder>

執行預存程式組態的動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性和儲存資料模型。

適用於

InsertUsingStoredProcedure(OwnedNavigationBuilder, String, Action<OwnedNavigationStoredProcedureBuilder>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder InsertUsingStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder> buildAction);
static member InsertUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function InsertUsingStoredProcedure (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, buildAction As Action(Of OwnedNavigationStoredProcedureBuilder)) As OwnedNavigationBuilder

參數

ownedNavigationBuilder
OwnedNavigationBuilder

要設定之實體類型的產生器。

name
String

資料庫中預存程式的名稱。

buildAction
Action<OwnedNavigationStoredProcedureBuilder>

執行預存程式組態的動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性和儲存資料模型。

適用於

InsertUsingStoredProcedure(EntityTypeBuilder, String, String, Action<StoredProcedureBuilder>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder InsertUsingStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder> buildAction);
static member InsertUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function InsertUsingStoredProcedure (entityTypeBuilder As EntityTypeBuilder, name As String, schema As String, buildAction As Action(Of StoredProcedureBuilder)) As EntityTypeBuilder

參數

entityTypeBuilder
EntityTypeBuilder

要設定之實體類型的產生器。

name
String

資料庫中預存程式的名稱。

schema
String

資料庫中預存程式的架構。

buildAction
Action<StoredProcedureBuilder>

執行預存程式組態的動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性和儲存資料模型。

適用於

InsertUsingStoredProcedure(OwnedNavigationBuilder, String, String, Action<OwnedNavigationStoredProcedureBuilder>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder InsertUsingStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder> buildAction);
static member InsertUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function InsertUsingStoredProcedure (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, schema As String, buildAction As Action(Of OwnedNavigationStoredProcedureBuilder)) As OwnedNavigationBuilder

參數

ownedNavigationBuilder
OwnedNavigationBuilder

要設定之實體類型的產生器。

name
String

資料庫中預存程式的名稱。

schema
String

資料庫中預存程式的架構。

buildAction
Action<OwnedNavigationStoredProcedureBuilder>

執行預存程式組態的動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性和儲存資料模型。

適用於

InsertUsingStoredProcedure<TEntity>(EntityTypeBuilder<TEntity>, Action<StoredProcedureBuilder<TEntity>>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> InsertUsingStoredProcedure<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity>> buildAction) where TEntity : class;
static member InsertUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function InsertUsingStoredProcedure(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), buildAction As Action(Of StoredProcedureBuilder(Of TEntity))) As EntityTypeBuilder(Of TEntity)

類型參數

TEntity

正在設定的實體型別。

參數

entityTypeBuilder
EntityTypeBuilder<TEntity>

要設定之實體類型的產生器。

buildAction
Action<StoredProcedureBuilder<TEntity>>

執行預存程式組態的動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性和儲存資料模型。

適用於

InsertUsingStoredProcedure<TEntity>(EntityTypeBuilder<TEntity>, String, Action<StoredProcedureBuilder<TEntity>>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> InsertUsingStoredProcedure<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity>> buildAction) where TEntity : class;
static member InsertUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function InsertUsingStoredProcedure(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, buildAction As Action(Of StoredProcedureBuilder(Of TEntity))) As EntityTypeBuilder(Of TEntity)

類型參數

TEntity

正在設定的實體型別。

參數

entityTypeBuilder
EntityTypeBuilder<TEntity>

要設定之實體類型的產生器。

name
String

資料庫中預存程式的名稱。

buildAction
Action<StoredProcedureBuilder<TEntity>>

執行預存程式組態的動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性和儲存資料模型。

適用於

InsertUsingStoredProcedure<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<StoredProcedureBuilder<TEntity>>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> InsertUsingStoredProcedure<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity>> buildAction) where TEntity : class;
static member InsertUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function InsertUsingStoredProcedure(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, schema As String, buildAction As Action(Of StoredProcedureBuilder(Of TEntity))) As EntityTypeBuilder(Of TEntity)

類型參數

TEntity

正在設定的實體型別。

參數

entityTypeBuilder
EntityTypeBuilder<TEntity>

要設定之實體類型的產生器。

name
String

資料庫中預存程式的名稱。

schema
String

資料庫中預存程式的架構。

buildAction
Action<StoredProcedureBuilder<TEntity>>

執行預存程式組態的動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性和儲存資料模型。

適用於

InsertUsingStoredProcedure<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity, TDependentEntity>>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> InsertUsingStoredProcedure<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member InsertUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function InsertUsingStoredProcedure(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, schema As String, buildAction As Action(Of OwnedNavigationStoredProcedureBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

類型參數

TOwnerEntity

擁有關聯性的實體類型。

TDependentEntity

關聯性的相依實體類型。

參數

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

要設定之實體類型的產生器。

name
String

資料庫中預存程式的名稱。

schema
String

資料庫中預存程式的架構。

buildAction
Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>>

執行預存程式組態的動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性和儲存資料模型。

適用於

InsertUsingStoredProcedure<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity, TDependentEntity>>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> InsertUsingStoredProcedure<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member InsertUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function InsertUsingStoredProcedure(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, buildAction As Action(Of OwnedNavigationStoredProcedureBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

類型參數

TOwnerEntity

擁有關聯性的實體類型。

TDependentEntity

關聯性的相依實體類型。

參數

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

要設定之實體類型的產生器。

name
String

資料庫中預存程式的名稱。

buildAction
Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>>

執行預存程式組態的動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性和儲存資料模型。

適用於

InsertUsingStoredProcedure<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity, TDependentEntity>>)

設定以關係資料庫為目標時,實體類型用於插入的預存程式。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> InsertUsingStoredProcedure<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member InsertUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function InsertUsingStoredProcedure(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), buildAction As Action(Of OwnedNavigationStoredProcedureBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

類型參數

TOwnerEntity

擁有關聯性的實體類型。

TDependentEntity

關聯性的相依實體類型。

參數

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

要設定之實體類型的產生器。

buildAction
Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>>

執行預存程式組態的動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性和儲存資料模型。

適用於