LengthPropertyConfiguration Class

Definition

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

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

Methods

Equals(Object)
Equals(Object) (Inherited from PrimitivePropertyConfiguration)
GetHashCode()
GetHashCode() (Inherited from PrimitivePropertyConfiguration)
GetType()
GetType()

Gets the Type of the current instance.

(Inherited from PrimitivePropertyConfiguration)
HasColumnAnnotation(String, Object)

Sets an annotation in the model for the database column used to store the property. The annotation value can later be used when processing the column such as when creating migrations.

(Inherited from PrimitivePropertyConfiguration)
HasColumnName(String)

Configures the name of the database column used to store the property.

(Inherited from PrimitivePropertyConfiguration)
HasColumnOrder(Nullable<Int32>)

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

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

(Inherited from PrimitivePropertyConfiguration)
HasDatabaseGeneratedOption(Nullable<DatabaseGeneratedOption>)

Configures how values for the property are generated by the database.

(Inherited from PrimitivePropertyConfiguration)
HasDatabaseGeneratedOption(Nullable<DatabaseGeneratedOption>)

Configures how values for the property are generated by the database.

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

Configures the property to have the specified maximum length.

HasParameterName(String)

Configures the name of the parameter used in stored procedures for this property.

(Inherited from PrimitivePropertyConfiguration)
IsConcurrencyToken()

Configures the property to be used as an optimistic concurrency token.

(Inherited from PrimitivePropertyConfiguration)
IsConcurrencyToken(Nullable<Boolean>)

Configures whether or not the property is to be used as an optimistic concurrency token.

(Inherited from PrimitivePropertyConfiguration)
IsFixedLength()

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

IsMaxLength()

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

IsOptional()

Configures the property to be optional. The database column used to store this property will be nullable.

(Inherited from PrimitivePropertyConfiguration)
IsRequired()

Configures the property to be required. The database column used to store this property will be non-nullable.

(Inherited from PrimitivePropertyConfiguration)
IsVariableLength()

Configures the property to be variable length. Properties are variable length by default.

ToString()
ToString() (Inherited from PrimitivePropertyConfiguration)

Applies to