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