PropertyMappingConfiguration 类

定义

用于在映射片段中配置属性。 此配置功能通过 Code First Fluent API 提供,请参阅 DbModelBuilder

public class PropertyMappingConfiguration
type PropertyMappingConfiguration = class
Public Class PropertyMappingConfiguration
继承
PropertyMappingConfiguration

方法

HasColumnAnnotation(String, Object)

在模型中为用于存储属性的数据库列设置批注。 注释值稍后可以在处理列时使用,例如在创建迁移时。

HasColumnName(String)

配置用于在映射片段中存储属性的数据库列的名称。

适用于