ConventionPrimitivePropertyConfiguration Class
Represents a primitive property of an entity type or complex type.
Assembly: EntityFramework (in EntityFramework.dll)
System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
Name | Description | |
---|---|---|
![]() | ClrPropertyInfo | Gets the PropertyInfo for this property. |
Name | Description | |
---|---|---|
![]() | Equals(Object) | Specifies whether this instance is equal to another object.(Overrides Object.Equals(Object).) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | Gets the hash code of this instance.(Overrides Object.GetHashCode().) |
![]() | GetType() | Gets the Type of the current instance. |
![]() | 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. |
![]() | HasColumnName(String) | Configures the name of the database column used to store the property. |
![]() | HasColumnOrder(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. |
![]() | HasColumnType(String) | Configures the data type of the database column used to store the property. |
![]() | HasDatabaseGeneratedOption(DatabaseGeneratedOption) | Configures how values for the property are generated by the database. |
![]() | HasMaxLength(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. |
![]() | HasPrecision(Byte) | Configures the precision of the DateTime property. If the database provider does not support precision for the data type of the column then the value is ignored. |
![]() | HasPrecision(Byte, Byte) | Configures the precision and scale of the Decimal property. |
![]() | IsConcurrencyToken() | Configures the property to be used as an optimistic concurrency token. |
![]() | IsConcurrencyToken(Boolean) | Configures whether or not the property is to be used as an optimistic concurrency token. |
![]() | IsFixedLength() | Configures the property to be fixed length. Use HasMaxLength to set the length that the property is fixed to. |
![]() | IsKey() | Configures this property to be part of the entity type's primary key. |
![]() | 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. |
![]() | IsRequired() | Configures the property to be required. The database column used to store this property will be non-nullable. |
![]() | IsRowVersion() | Configures the property to be a row version in the database. The actual data type will vary depending on the database provider being used. Setting the property to be a row version will automatically configure it to be an optimistic concurrency token. |
![]() | IsUnicode() | Configures the property to support Unicode string content. |
![]() | IsUnicode(Boolean) | Configures whether or not the property supports Unicode string content. |
![]() | IsVariableLength() | Configures the property to be variable length. Properties are variable length by default. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | Returns a 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.