Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

StringColumnConfiguration Class

Entity Framework 5.0

Configures a database column used to store string values. This configuration functionality is exposed by the Code First Fluent API. For more information, see DbModelBuilder.

Namespace:  System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)
public class StringColumnConfiguration : LengthColumnConfiguration

The StringColumnConfiguration type exposes the following members.

  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object. This method is hidden from IntelliSense. (Overrides LengthColumnConfiguration.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. This method is hidden from IntelliSense. (Overrides LengthColumnConfiguration.GetHashCode().)
Public methodGetTypeGets the type of the current instance. This method is hidden from IntelliSense.
Public methodHasColumnOrder Configures the order of the database column.
Public methodHasColumnType Configures the data type of the database column.
Public methodHasMaxLengthConfigures the property to have the specified maximum length.
Public methodIsFixedLength Configures the column to be fixed length. Use HasMaxLength to set the length that the property is fixed to.
Public methodIsMaxLength Configures the column to allow the maximum length supported by the database provider.
Public methodIsOptional Configures the column to be optional.
Public methodIsRequired Configures the column to be required.
Public methodIsUnicode() Configures the column to support Unicode string content.
Public methodIsUnicode(Nullable<Boolean>) Configures whether or not the column supports Unicode string content.
Public methodIsVariableLength Configures the column to be variable length. Columns are variable length by default.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. This method is hidden from IntelliSense. (Overrides LengthColumnConfiguration.ToString().)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.