次の方法で共有


MaxLengthAttributeConvention クラス

定義

プロパティに適用された に基づいて最大長を MaxLengthAttribute 構成する規則。

public class MaxLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.MaxLengthAttribute>
public class MaxLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.MaxLengthAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention
type MaxLengthAttributeConvention = class
    inherit PropertyAttributeConventionBase<MaxLengthAttribute>
type MaxLengthAttributeConvention = class
    inherit PropertyAttributeConventionBase<MaxLengthAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
Public Class MaxLengthAttributeConvention
Inherits PropertyAttributeConventionBase(Of MaxLengthAttribute)
Public Class MaxLengthAttributeConvention
Inherits PropertyAttributeConventionBase(Of MaxLengthAttribute)
Implements IComplexPropertyAddedConvention
継承
実装

注釈

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

コンストラクター

MaxLengthAttributeConvention(ProviderConventionSetBuilderDependencies)

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

プロパティ

Dependencies

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

(継承元 PropertyAttributeConventionBase<TAttribute>)

メソッド

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

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

(継承元 PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

複合プロパティのバッキング フィールドが変更された後に呼び出されます。

(継承元 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

プロパティに適用された に基づいて最大長を MaxLengthAttribute 構成する規則。

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

関連付けられた CLR プロパティまたはフィールドの属性を持つ型に複合プロパティが追加された後に呼び出されます。

(継承元 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

プロパティがエンティティ型に追加された後に呼び出されます。

(継承元 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

関連付けられた CLR プロパティまたはフィールドに属性を持つエンティティ型にプロパティが追加された後に呼び出されます。

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

関連付けられた CLR プロパティまたはフィールドに属性を持つエンティティ型にプロパティが追加された後に呼び出されます。

(継承元 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

プロパティのバッキング フィールドが変更された後に呼び出されます。

(継承元 PropertyAttributeConventionBase<TAttribute>)

適用対象