語言

PropertyMaxLengthConvention 類別

定義

為類型支援長度 Facet 的屬性設定最大長度的慣例。 預設值為 128。

public class PropertyMaxLengthConvention : System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.AssociationType>, System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.ComplexType>, System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.EntityType>
type PropertyMaxLengthConvention = class
    interface IConceptualModelConvention<EntityType>
    interface IConceptualModelConvention<ComplexType>
    interface IConceptualModelConvention<AssociationType>
    interface IConvention
Public Class PropertyMaxLengthConvention
Implements IConceptualModelConvention(Of AssociationType), IConceptualModelConvention(Of ComplexType), IConceptualModelConvention(Of EntityType)
繼承
PropertyMaxLengthConvention
實作

建構函式

名稱 Description
PropertyMaxLengthConvention()

使用預設長度,初始化 的新實例 PropertyMaxLengthConvention 。

PropertyMaxLengthConvention(Int32)

使用指定的長度,初始化 的新實例 PropertyMaxLengthConvention 。

方法

名稱 Description
Apply(AssociationType, DbModel)

將此慣例套用至模型中的專案。

Apply(ComplexType, DbModel)

將此慣例套用至模型中的專案。

Apply(EntityType, DbModel)

將此慣例套用至模型中的專案。

適用於