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
用來設定此關聯性的產生器。