ReferenceReferenceBuilder.SetPrincipalEntityType 方法

定義

多載

SetPrincipalEntityType(String)

設定屬於關聯性主體的實體類型。

SetPrincipalEntityType(Type)

設定屬於關聯性主體的實體類型。

SetPrincipalEntityType(String)

設定屬於關聯性主體的實體類型。

protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder SetPrincipalEntityType (string principalEntityTypeName);
abstract member SetPrincipalEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.SetPrincipalEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Protected Overridable Function SetPrincipalEntityType (principalEntityTypeName As String) As InternalRelationshipBuilder

參數

principalEntityTypeName
String

主體實體類型的名稱。

傳回

Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder

用來設定此關聯性的產生器。

適用於

SetPrincipalEntityType(Type)

設定屬於關聯性主體的實體類型。

protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder SetPrincipalEntityType (Type principalEntityType);
abstract member SetPrincipalEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.SetPrincipalEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Protected Overridable Function SetPrincipalEntityType (principalEntityType As Type) As InternalRelationshipBuilder

參數

principalEntityType
Type

主體實體類型。

傳回

Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder

用來設定此關聯性的產生器。

適用於