次の方法で共有


OwnedTypesConvention クラス

定義

注意事項

Entity types with defining navigations have been replaced by shared-type entity types

この型のナビゲーションが 1 つしかない場合は、ナビゲーションを定義せずにナビゲーションを所有エンティティ型として定義して所有エンティティ型を構成する規則。

public class OwnedTypesConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
[System.Obsolete("Entity types with defining navigations have been replaced by shared-type entity types")]
public class OwnedTypesConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
type OwnedTypesConvention = class
    interface IEntityTypeRemovedConvention
    interface IConvention
[<System.Obsolete("Entity types with defining navigations have been replaced by shared-type entity types")>]
type OwnedTypesConvention = class
    interface IEntityTypeRemovedConvention
    interface IConvention
Public Class OwnedTypesConvention
Implements IEntityTypeRemovedConvention
継承
OwnedTypesConvention
属性
実装

注釈

詳細については、「 モデルの構築規則 」を参照してください。

コンストラクター

OwnedTypesConvention(ProviderConventionSetBuilderDependencies)
古い.

OwnedTypesConvention の新しいインスタンスを作成します。

プロパティ

Dependencies
古い.

このサービスの依存関係。

メソッド

ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)
古い.

エンティティ型がモデルから削除された後に呼び出されます。

適用対象