次の方法で共有


PropertyAttributeConfigurationConvention<TAttribute> クラス

定義

モデル内の型のプロパティで見つかった CLR 属性を処理する規則の基本クラス。

public abstract class PropertyAttributeConfigurationConvention<TAttribute> : System.Data.Entity.ModelConfiguration.Conventions.Convention where TAttribute : Attribute
type PropertyAttributeConfigurationConvention<'Attribute (requires 'Attribute :> Attribute)> = class
    inherit Convention
Public MustInherit Class PropertyAttributeConfigurationConvention(Of TAttribute)
Inherits Convention

型パラメーター

TAttribute

検索する属性の型。

継承
PropertyAttributeConfigurationConvention<TAttribute>
派生

注釈

派生規則は、モデルに含まれていない場合でも、指定された属性を持つマップされた型の非静的プロパティに適用されることに注意してください。

コンストラクター

PropertyAttributeConfigurationConvention<TAttribute>()

PropertyAttributeConfigurationConvention<TAttribute> クラスの新しいインスタンスを初期化します。

メソッド

Apply(PropertyInfo, ConventionTypeConfiguration, TAttribute)

TAttribute 型の属性が適用されているプロパティにこの規則を適用します。

Properties()

モデル内のすべてのプロパティに適用される軽量規則の構成を開始します。

(継承元 Convention)
Properties<T>()

モデル内の指定した型のすべてのプリミティブ プロパティに適用される軽量規則の構成を開始します。

(継承元 Convention)
Types()

モデル内のすべてのマップされた型に適用される軽量規則の構成を開始します。

(継承元 Convention)
Types<T>()

指定した型から派生または実装するモデル内のすべてのマップされた型に適用される軽量規則の構成を開始します。

(継承元 Convention)

適用対象