ITypeMappingConfiguration 接口

定义

表示标量类型的配置。

public interface ITypeMappingConfiguration : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
type ITypeMappingConfiguration = interface
    interface IAnnotatable
    interface IReadOnlyAnnotatable
Public Interface ITypeMappingConfiguration
Implements IAnnotatable
派生
实现

注解

有关详细信息和示例,请参阅 为实体类型和关系建模

属性

ClrType

获取此对象配置的类型。

Item[String]

获取具有给定名称的批注的值,如果不存在,则返回 null 该值。

(继承自 IReadOnlyAnnotatable)

方法

AddRuntimeAnnotation(String, Object)

向此对象添加运行时注释。 如果已存在具有指定名称的批注,则引发 。

(继承自 IAnnotatable)
AnnotationsToDebugString(Int32)

获取对象上声明的所有注释的调试字符串。

(继承自 IReadOnlyAnnotatable)
FindAnnotation(String)

获取具有给定名称的批注,如果不存在,则返回 null

(继承自 IReadOnlyAnnotatable)
FindRuntimeAnnotation(String)

获取具有给定名称的运行时注释,如果不存在,则返回 null

(继承自 IAnnotatable)
FindRuntimeAnnotationValue(String)

获取具有给定名称的运行时注释的值,如果不存在,则 null 返回该值。

(继承自 IAnnotatable)
GetAnnotation(String)

获取具有给定名称的批注,如果不存在,则引发该批注。

(继承自 IReadOnlyAnnotatable)
GetAnnotations()

获取当前对象上的所有批注。

(继承自 IReadOnlyAnnotatable)
GetMaxLength()

获取此属性中允许的最大数据长度。 例如,如果 属性为 , String 则这是最大字符数。

GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

获取具有给定名称的运行时注释的值,如果不存在,请添加该值。

(继承自 IAnnotatable)
GetPrecision()

获取此属性中允许的数据的精度。 例如,如果 属性为 , Decimal 则这是最大位数。

GetProviderClrType()

获取属性值在发送到数据库提供程序之前将转换为的类型。

GetRuntimeAnnotations()

获取当前 对象上的所有运行时注释。

(继承自 IAnnotatable)
GetScale()

获取此属性中允许的数据比例。 例如,如果 属性为 , Decimal 则这是小数位数的最大位数。

GetValueConverter()

获取此属性的自定义 ValueConverter 集。

IsUnicode()

获取一个值,该值指示属性是否可以持久保存 Unicode 字符。

RemoveRuntimeAnnotation(String)

从此对象中删除给定的运行时注释。

(继承自 IAnnotatable)
SetRuntimeAnnotation(String, Object)

设置存储在给定键下的运行时注释。 如果具有指定名称的注释已存在,则覆盖现有批注。

(继承自 IAnnotatable)

扩展方法

AnnotationsToDebugString(IAnnotatable, Int32)

获取对象上声明的所有注释的调试字符串。

适用于