ReferenceReferenceBuilder.SetPrincipalEntityType 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
用于配置此关系的生成器。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈