PropertyMaxLengthConvention Class

 

Represents a convention to set a maximum length for properties whose type supports length facets. The default value is 128.

Namespace:   System.Data.Entity.ModelConfiguration.Conventions
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.ModelConfiguration.Conventions.PropertyMaxLengthConvention

public class PropertyMaxLengthConvention : IConceptualModelConvention<EntityType>, 
	IConceptualModelConvention<ComplexType>, IConceptualModelConvention<AssociationType>, 
	IConvention

NameDescription
System_CAPS_pubmethodPropertyMaxLengthConvention()

Initializes a new instance of PropertyMaxLengthConvention with the default length.

System_CAPS_pubmethodPropertyMaxLengthConvention(Int32)

Initializes a new instance of PropertyMaxLengthConvention with the specified length.

NameDescription
System_CAPS_pubmethodApply(AssociationType, DbModel)

Applies the convention the given model configuration.

System_CAPS_pubmethodApply(ComplexType, DbModel)

Applies the convention the given model configuration.

System_CAPS_pubmethodApply(EntityType, DbModel)

Applies the convention the given model configuration.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.