PropertyMappingConfiguration 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 property in a mapping fragment. This configuration functionality is available via the Code First Fluent API, see DbModelBuilder.
public class PropertyMappingConfiguration
type PropertyMappingConfiguration = class
Public Class PropertyMappingConfiguration
- Inheritance
-
PropertyMappingConfiguration
Methods
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, in a mapping fragment. |
Applies to
Entity Framework