PropertyMappingConfiguration Class

Definition

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