PrimitivePropertyConfiguration Class

 

Provides methods that are used to configure a primitive property of an entity type or complex type. This configuration functionality is available via the Code First Fluent API, see DbModelBuilder.

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


public class PrimitivePropertyConfiguration

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether this instance is equal to the specified object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for the current instance.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.

System_CAPS_pubmethodHasColumnAnnotation(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.

System_CAPS_pubmethodHasColumnName(String)

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

System_CAPS_pubmethodHasColumnOrder(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.

System_CAPS_pubmethodHasColumnType(String)

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

System_CAPS_pubmethodHasDatabaseGeneratedOption(Nullable<DatabaseGeneratedOption>)

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

System_CAPS_pubmethodHasParameterName(String)

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

System_CAPS_pubmethodIsConcurrencyToken()

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

System_CAPS_pubmethodIsConcurrencyToken(Nullable<Boolean>)

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

System_CAPS_pubmethodIsOptional()

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

System_CAPS_pubmethodIsRequired()

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

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the string representation of this instance.(Overrides Object.ToString().)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.