次の方法で共有


TypeAttributeConventionBase<TAttribute> クラス

定義

構造型で指定された属性に基づいて構成を実行する規則の基本型。

public abstract class TypeAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention where TAttribute : Attribute
type TypeAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
    interface IEntityTypeAddedConvention
    interface IConvention
Public MustInherit Class TypeAttributeConventionBase(Of TAttribute)
Implements IEntityTypeAddedConvention

型パラメーター

TAttribute

検索する属性の型。

継承
TypeAttributeConventionBase<TAttribute>
派生
実装

注釈

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

コンストラクター

TypeAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies)

TypeAttributeConventionBase<TAttribute> の新しいインスタンスを作成します。

プロパティ

Dependencies

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

メソッド

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

複合プロパティが型に似たオブジェクトに追加された後に呼び出されます。

ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext)

複合型が属性を持つ場合は、モデルに追加された後に呼び出されます。

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

エンティティ型がモデルに追加された後に呼び出されます。

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

属性がある場合は、エンティティ型がモデルに追加された後に呼び出されます。

ReplaceWithEntityType(IConventionComplexTypeBuilder, Nullable<Boolean>)

複合型をエンティティ型に置き換えようとします。

適用対象