Share via


PropertyMaxLengthConvention Class

Definition

Convention to set a maximum length for properties whose type supports length facets. The default value is 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)
Inheritance
PropertyMaxLengthConvention
Implements

Constructors

PropertyMaxLengthConvention()

Initializes a new instance of PropertyMaxLengthConvention with the default length.

PropertyMaxLengthConvention(Int32)

Initializes a new instance of PropertyMaxLengthConvention with the specified length.

Methods

Apply(AssociationType, DbModel)

Applies this convention to an item in the model.

Apply(ComplexType, DbModel)

Applies this convention to an item in the model.

Apply(EntityType, DbModel)

Applies this convention to an item in the model.

Applies to