IConventionRelationshipBuilder.HasEntityTypes メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
このリレーションシップに参加するエンティティ型を構成します。 このメソッドを呼び出すことで、プリンシパル型と依存型を切り替えたり、関係を参加しているエンティティ型のいずれかの基本型に移動したりできます。
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder HasEntityTypes (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType principalEntityType, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType dependentEntityType, bool fromDataAnnotation = false);
abstract member HasEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder
Public Function HasEntityTypes (principalEntityType As IConventionEntityType, dependentEntityType As IConventionEntityType, Optional fromDataAnnotation As Boolean = false) As IConventionRelationshipBuilder
パラメーター
- principalEntityType
- IConventionEntityType
設定するプリンシパル エンティティの種類。
- dependentEntityType
- IConventionEntityType
設定する依存エンティティの種類。
- fromDataAnnotation
- Boolean
構成がデータ注釈を使用して指定されたかどうかを示します。
戻り値
エンティティ型が関連として構成されている場合はビルダー インスタンス。 null
それ以外の場合は 。