LengthColumnConfiguration Class

Definition

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.

public abstract class LengthColumnConfiguration : System.Data.Entity.ModelConfiguration.Configuration.PrimitiveColumnConfiguration
type LengthColumnConfiguration = class
    inherit PrimitiveColumnConfiguration
Public MustInherit Class LengthColumnConfiguration
Inherits PrimitiveColumnConfiguration
Inheritance
LengthColumnConfiguration
Derived

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

GetType()

Gets the Type of the current instance.

HasColumnOrder(Nullable<Int32>)

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)
HasColumnType(String)

Configures the data type of the primitive column used to store the property.

(Inherited from PrimitiveColumnConfiguration)
HasMaxLength(Nullable<Int32>)

Configures the column to have the specified maximum length.

IsFixedLength()

Configures the column to be fixed length.

IsMaxLength()

Configures the column to allow the maximum length supported by the database provider.

IsOptional()

Configures the primitive column to be optional.

(Inherited from PrimitiveColumnConfiguration)
IsRequired()

Configures the primitive column to be required.

(Inherited from PrimitiveColumnConfiguration)
IsVariableLength()

Configures the column to be variable length.

ToString()

Returns a string that represents the current object.

Applies to