MaxLengthAttributeConvention クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
プロパティに適用される MaxLengthAttribute に基づいて最大長を構成する規則。
[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class MaxLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.MaxLengthAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention
public class MaxLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.MaxLengthAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type MaxLengthAttributeConvention = class
inherit PropertyAttributeConventionBase<MaxLengthAttribute>
interface IComplexPropertyAddedConvention
interface IConvention
type MaxLengthAttributeConvention = class
inherit PropertyAttributeConventionBase<MaxLengthAttribute>
Public Class MaxLengthAttributeConvention
Inherits PropertyAttributeConventionBase(Of MaxLengthAttribute)
Implements IComplexPropertyAddedConvention
Public Class MaxLengthAttributeConvention
Inherits PropertyAttributeConventionBase(Of MaxLengthAttribute)
- 継承
- 属性
- 実装
注釈
詳細と例については、「 モデル構築規則 」を参照してください。
コンストラクター
| Name | 説明 |
|---|---|
| MaxLengthAttributeConvention(ProviderConventionSetBuilderDependencies) |
MaxLengthAttributeConventionの新しいインスタンスを作成します。 |
プロパティ
| Name | 説明 |
|---|---|
| Dependencies |
このサービスの依存関係。 (継承元 PropertyAttributeConventionBase<TAttribute>) |