PropertyModel 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.
Represents information about a property of an entity.
Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.
public abstract class PropertyModel
type PropertyModel = class
Public MustInherit Class PropertyModel
- Inheritance
-
PropertyModel
- Derived
Constructors
PropertyModel(PrimitiveTypeKind, TypeUsage) |
Initializes a new instance of the PropertyModel class. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc. |
Properties
DefaultValue |
Gets or sets a constant value to use as the default value for this property model. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc. |
DefaultValueSql |
Gets or sets a SQL expression used as the default value for this property model. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc. |
IsFixedLength |
Gets or sets a value indicating if this property model is fixed length. Only valid for array data types. |
IsUnicode |
Gets or sets a value indicating if this property model supports Unicode characters. Only valid for textual data types. |
MaxLength |
Gets or sets the maximum length for this property model. Only valid for array data types. |
Name |
Gets or sets the name of the property model. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc. |
Precision |
Gets or sets the precision for this property model. Only valid for decimal data types. |
Scale |
Gets or sets the scale for this property model. Only valid for decimal data types. |
StoreType |
Gets or sets a provider specific data type to use for this property model. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc. |
Type |
Gets the data type for this property model. |
TypeUsage |
Gets additional details about the data type of this property model. This includes details such as maximum length, nullability etc. |
Applies to
Entity Framework