DecimalPropertyConfiguration Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Used to configure a System.decimal property of an entity type or complex type. This configuration functionality is available via the Code First Fluent API, see DbModelBuilder.
public class DecimalPropertyConfiguration : System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
type DecimalPropertyConfiguration = class
inherit PrimitivePropertyConfiguration
Public Class DecimalPropertyConfiguration
Inherits PrimitivePropertyConfiguration
- Inheritance
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. |
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. |
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. |
HasColumnType(String) |
Configures the data type of the database column used to store the property. |
HasDatabaseGeneratedOption(Nullable<DatabaseGeneratedOption>) |
Configures how values for the property are generated by the database. |
HasDatabaseGeneratedOption(Nullable<DatabaseGeneratedOption>) |
Configures how values for the property are generated by the database. |
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) |
HasParameterName(String) |
Configures the name of the parameter used in stored procedures for this property. (Inherited from PrimitivePropertyConfiguration) |
HasPrecision(Byte, Byte) |
Configures the precision and scale of the property. |
IsConcurrencyToken() |
Configures the property to be used as an optimistic concurrency token. |
IsConcurrencyToken(Nullable<Boolean>) |
Configures whether or not the property is to be used as an optimistic concurrency token. |
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. System.decimal properties are required by default. |
ToString() | |
ToString() | (Inherited from PrimitivePropertyConfiguration) |
Applies to
Entity Framework