Export (0) Print
Expand All

LengthPropertyConfiguration Class

Entity Framework 5.0

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

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

public abstract class LengthPropertyConfiguration : PrimitivePropertyConfiguration

The LengthPropertyConfiguration 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 PrimitivePropertyConfiguration.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. This method is hidden from IntelliSense. (Overrides PrimitivePropertyConfiguration.GetHashCode().)
Public methodGetTypeGets the type of the current instance. This method is hidden from IntelliSense.
Public methodHasColumnName Configures the name of the database column used to store the property. (Inherited from PrimitivePropertyConfiguration.)
Public methodHasColumnOrder Configures the order of the database 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 PrimitivePropertyConfiguration.)
Public methodHasColumnType Configures the data type of the database column used to store the property. (Inherited from PrimitivePropertyConfiguration.)
Public methodHasDatabaseGeneratedOption Configures how values for the property are generated by the database. (Inherited from PrimitivePropertyConfiguration.)
Public methodHasMaxLength Configures the property to have the specified maximum length.
Public methodIsConcurrencyToken() Configures the property to be used as an optimistic concurrency token. (Inherited from PrimitivePropertyConfiguration.)
Public methodIsConcurrencyToken(Nullable<Boolean>) Configures whether or not the property is to be used as an optimistic concurrency token. (Inherited from PrimitivePropertyConfiguration.)
Public methodIsFixedLength Configures the property to be fixed length. Use HasMaxLength to set the length that the property is fixed to.
Public methodIsMaxLength Configures the property to allow the maximum length supported by the database provider.
Public methodIsOptional Configures the property to be optional. The database column used to store this property will be nullable. (Inherited from PrimitivePropertyConfiguration.)
Public methodIsRequired Configures the property to be required. The database column used to store this property will be non-nullable. (Inherited from PrimitivePropertyConfiguration.)
Public methodIsVariableLength Configures the property 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 PrimitivePropertyConfiguration.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.
Show:
© 2014 Microsoft