次の方法で共有


AttributeToTableAnnotationConvention<TAttribute,TAnnotation> クラス

定義

.NET 型から属性を読み取り、それらの属性に基づいてテーブル注釈を生成する Code First 規則の汎用クラス。

public class AttributeToTableAnnotationConvention<TAttribute,TAnnotation> : System.Data.Entity.ModelConfiguration.Conventions.Convention where TAttribute : Attribute
type AttributeToTableAnnotationConvention<'Attribute, 'Annotation (requires 'Attribute :> Attribute)> = class
    inherit Convention
Public Class AttributeToTableAnnotationConvention(Of TAttribute, TAnnotation)
Inherits Convention

型パラメーター

TAttribute

検出する属性の型。

TAnnotation

作成される注釈の種類。

継承
AttributeToTableAnnotationConvention<TAttribute,TAnnotation>

コンストラクター

AttributeToTableAnnotationConvention<TAttribute,TAnnotation>(String, Func<Type,IList<TAttribute>,TAnnotation>)

指定された名前を持ち、指定されたファクトリ デリゲートを使用してテーブル注釈を作成する規則を構築します。

メソッド

Properties()

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

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

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

(継承元 Convention)
Types()

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

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

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

(継承元 Convention)

適用対象