Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
LengthColumnConfiguration Class
Collapse the table of content
Expand the table of content

LengthColumnConfiguration Class

Entity Framework 5.0

Used to configure a column with length facets for an entity type or complex type. This configuration functionality is exposed by the Code First Fluent API, see DbModelBuilder.

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

public abstract class LengthColumnConfiguration : PrimitiveColumnConfiguration

The LengthColumnConfiguration type exposes the following members.

Public methodEqualsDetermines whether the specified object is equal to the current object. This method is hidden from IntelliSense. (Overrides PrimitiveColumnConfiguration.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. This method is hidden from IntelliSense. (Overrides PrimitiveColumnConfiguration.GetHashCode().)
Public methodGetTypeGets the type of the current instance. This method is hidden from IntelliSense.
Public methodHasColumnOrder Configures the order of the primitive column used to store the property. This method is also used to specify key ordering when an entity type has a composite key. (Inherited from PrimitiveColumnConfiguration.)
Public methodHasColumnType Configures the data type of the primitive column used to store the property. (Inherited from PrimitiveColumnConfiguration.)
Public methodHasMaxLength Configures the column to have the specified maximum length.
Public methodIsFixedLengthConfigures the column to be fixed length.
Public methodIsMaxLength Configures the column to allow the maximum length supported by the database provider.
Public methodIsOptionalConfigures the primitive column to be optional. (Inherited from PrimitiveColumnConfiguration.)
Public methodIsRequiredConfigures the primitive column to be required. (Inherited from PrimitiveColumnConfiguration.)
Public methodIsVariableLength Configures the column to be variable length.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. This method is hidden from IntelliSense. (Overrides PrimitiveColumnConfiguration.ToString().)

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