Share via


StringColumnConfiguration Class

Definition

Configures a database column used to store a string values. This configuration functionality is available via the Code First Fluent API, see DbModelBuilder.

public class StringColumnConfiguration : System.Data.Entity.ModelConfiguration.Configuration.LengthColumnConfiguration
type StringColumnConfiguration = class
    inherit LengthColumnConfiguration
Public Class StringColumnConfiguration
Inherits LengthColumnConfiguration
Inheritance

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 database column.

HasColumnType(String)

Configures the data type of the database column.

HasMaxLength(Nullable<Int32>)

Configures the property to have the specified maximum length.

IsFixedLength()

Configures the column to be fixed length. Use HasMaxLength to set the length that the property is fixed to.

IsMaxLength()

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

IsOptional()

Configures the column to be optional.

IsRequired()

Configures the column to be required.

IsUnicode()

Configures the column to support Unicode string content.

IsUnicode(Nullable<Boolean>)

Configures whether or not the column supports Unicode string content.

IsVariableLength()

Configures the column to be variable length. Columns are variable length by default.

ToString()

Returns a string that represents the current object.

Applies to