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

用于配置此关系的生成器。

适用于