语言

RelationalPropertyExtensions 类

定义

关系数据库元数据的属性扩展方法。

[System.Runtime.CompilerServices.Nullable(0)]
public static class RelationalPropertyExtensions
public static class RelationalPropertyExtensions
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalPropertyExtensions = class
type RelationalPropertyExtensions = class
Public Module RelationalPropertyExtensions
继承
RelationalPropertyExtensions
特性

注解

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

方法

名称 说明
FindColumn(IProperty, StoreObjectIdentifier)

如果映射到给定的类似表的存储对象,则返回对应于此属性的列。

FindOverrides(IConventionProperty, StoreObjectIdentifier)

返回特定表式存储对象的属性 facet 重写。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

FindOverrides(IMutableProperty, StoreObjectIdentifier)

返回特定表式存储对象的属性 facet 重写。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

FindOverrides(IProperty, StoreObjectIdentifier)

返回特定表式存储对象的属性 facet 重写。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

FindOverrides(IReadOnlyProperty, StoreObjectIdentifier)

返回特定表式存储对象的属性 facet 重写。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

FindRelationalMapping(IProperty)
已过时.

返回 RelationalTypeMapping 最终模型的给定属性。

FindRelationalTypeMapping(IProperty, StoreObjectIdentifier)

返回 RelationalTypeMapping 最终模型的给定属性。

FindRelationalTypeMapping(IProperty)

返回 RelationalTypeMapping 最终模型的给定属性。

FindRelationalTypeMapping(IReadOnlyProperty, StoreObjectIdentifier)

返回 RelationalTypeMapping 最终模型的给定属性。

FindRelationalTypeMapping(IReadOnlyProperty)

返回 RelationalTypeMapping 最终模型的给定属性。

FindSharedStoreObjectRootProperty(IConventionProperty, StoreObjectIdentifier)

查找映射到共享表类似对象中的同一列的第 IProperty 一列。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

FindSharedStoreObjectRootProperty(IMutableProperty, StoreObjectIdentifier)

查找映射到共享表类似对象中的同一列的第 IProperty 一列。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

FindSharedStoreObjectRootProperty(IProperty, StoreObjectIdentifier)

查找映射到共享表类似对象中的同一列的第 IProperty 一列。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

FindSharedStoreObjectRootProperty(IReadOnlyProperty, StoreObjectIdentifier)

查找映射到共享表类似对象中的同一列的第 IProperty 一列。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

FindSharedTableRootPrimaryKeyProperty(IProperty)

查找 IProperty 表示与给定属性相同的主键属性,但可能位于共享根表中。

此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

GetCollation(IProperty, StoreObjectIdentifier)

返回要用于列的排序规则。

GetCollation(IProperty)

返回要用于列的排序规则。

GetCollation(IReadOnlyProperty, StoreObjectIdentifier)

返回要用于列的排序规则。

GetCollation(IReadOnlyProperty)

返回要用于列的排序规则。

GetCollationConfigurationSource(IConventionProperty)

获取 ConfigurationSource 列排序规则。

GetColumnBaseName(IProperty)

返回属性要映射到的列的基名称。

GetColumnBaseName(IReadOnlyProperty)
已过时.

返回属性要映射到的列的基名称。

GetColumnName(IProperty, StoreObjectIdentifier)

返回为特定表映射属性的列的名称。

GetColumnName(IProperty)
已过时.

返回属性映射到的表列的名称。

GetColumnName(IReadOnlyProperty, StoreObjectIdentifier)

返回为特定表映射属性的列的名称。

GetColumnName(IReadOnlyProperty)

返回属性要映射到的列的名称。

GetColumnNameConfigurationSource(IConventionProperty, StoreObjectIdentifier)

获取 ConfigurationSource 特定类似表的存储对象的列名。

GetColumnNameConfigurationSource(IConventionProperty)

获取 ConfigurationSource 列名称。

GetColumnOrder(IReadOnlyProperty, StoreObjectIdentifier)

返回此属性映射到特定表的列的顺序。

GetColumnOrder(IReadOnlyProperty)

返回此属性映射到的列的顺序。

GetColumnOrderConfigurationSource(IConventionProperty)

ConfigurationSource获取列顺序。

GetColumnType(IProperty, StoreObjectIdentifier)

返回属性映射到的列的数据库类型。

GetColumnType(IProperty)

返回属性映射到的列的数据库类型。

GetColumnType(IReadOnlyProperty, StoreObjectIdentifier)

返回属性映射到的列的数据库类型,或者 null 找不到数据库类型。

GetColumnType(IReadOnlyProperty)

返回属性映射到的列的数据库类型,或者 null 找不到数据库类型。

GetColumnTypeConfigurationSource(IConventionProperty)

获取 ConfigurationSource 列名称。

GetComment(IProperty, StoreObjectIdentifier)

返回此属性映射到的列的注释。

GetComment(IProperty)

返回此属性映射到的列的注释。

GetComment(IReadOnlyProperty, StoreObjectIdentifier)

返回此属性映射到的列的注释。

GetComment(IReadOnlyProperty)

返回此属性映射到的列的注释。

GetCommentConfigurationSource(IConventionProperty)

获取 ConfigurationSource 列注释。

GetComputedColumnSql(IProperty, StoreObjectIdentifier)

返回用作此属性所映射到列的计算值的 SQL 表达式。

GetComputedColumnSql(IProperty)

返回用作此属性所映射到列的计算值的 SQL 表达式。

GetComputedColumnSql(IReadOnlyProperty, StoreObjectIdentifier)

返回用作此属性所映射到列的计算值的 SQL 表达式。

GetComputedColumnSql(IReadOnlyProperty)

返回用作此属性所映射到列的计算值的 SQL 表达式。

GetComputedColumnSqlConfigurationSource(IConventionProperty)

获取 ConfigurationSource 计算值 SQL 表达式。

GetDefaultColumnBaseName(IProperty)

返回属性要映射到的列的默认基名称

GetDefaultColumnBaseName(IReadOnlyProperty)
已过时.

返回属性要映射到的列的默认基名称

GetDefaultColumnMappings(IProperty)

返回属性要映射到的默认列。

GetDefaultColumnMappings(IPropertyBase)

返回属性要映射到的默认列。

GetDefaultColumnName(IProperty, StoreObjectIdentifier)

返回属性要映射到的默认列名。

GetDefaultColumnName(IProperty)
已过时.

返回属性要映射到的默认表列名。

GetDefaultColumnName(IReadOnlyProperty, StoreObjectIdentifier)

返回属性要映射到的默认列名。

GetDefaultColumnName(IReadOnlyProperty)

返回属性要映射到的列的默认基名称

GetDefaultConstraintName(IReadOnlyProperty, StoreObjectIdentifier)

获取默认约束名称。

GetDefaultConstraintName(IReadOnlyProperty)

获取默认约束名称。

GetDefaultConstraintNameConfigurationSource(IConventionProperty)

返回默认约束名称的配置源。

GetDefaultDefaultConstraintName(IReadOnlyProperty, StoreObjectIdentifier)

根据表和列名生成默认约束名称。

GetDefaultValue(IProperty, StoreObjectIdentifier)

返回用作此属性所映射到列的默认值的对象。

GetDefaultValue(IProperty)

返回用作此属性所映射到列的默认值的对象。

GetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier)

返回用作此属性所映射到列的默认值的对象。

GetDefaultValue(IReadOnlyProperty)

返回用作此属性所映射到列的默认值的对象。

GetDefaultValueConfigurationSource(IConventionProperty)

获取 ConfigurationSource 默认值。

GetDefaultValueSql(IProperty, StoreObjectIdentifier)

返回用作此属性映射到的列的默认值的 SQL 表达式。

GetDefaultValueSql(IProperty)

返回用作此属性映射到的列的默认值的 SQL 表达式。

GetDefaultValueSql(IReadOnlyProperty, StoreObjectIdentifier)

返回用作此属性映射到的列的默认值的 SQL 表达式。

GetDefaultValueSql(IReadOnlyProperty)

返回用作此属性映射到的列的默认值的 SQL 表达式。

GetDefaultValueSqlConfigurationSource(IConventionProperty)

获取 ConfigurationSource 默认值 SQL 表达式。

GetDeleteStoredProcedureParameterMappings(IProperty)

返回属性映射到的删除存储过程参数。

GetFunctionColumnMappings(IProperty)

返回属性映射到的函数列。

GetInsertStoredProcedureParameterMappings(IProperty)

返回属性映射到的插入存储过程参数。

GetInsertStoredProcedureResultColumnMappings(IProperty)

返回属性映射到的插入存储过程结果列。

GetIsFixedLengthConfigurationSource(IConventionProperty)

获取 for ConfigurationSourceIsFixedLength(IReadOnlyProperty)。

GetIsStored(IProperty, StoreObjectIdentifier)

获取此属性映射到的计算列的值是存储在数据库中,还是在读取时计算。

GetIsStored(IProperty)

获取此属性映射到的计算列的值是存储在数据库中,还是在读取时计算。

GetIsStored(IReadOnlyProperty, StoreObjectIdentifier)

获取此属性映射到的计算列的值是存储在数据库中,还是在读取时计算。

GetIsStored(IReadOnlyProperty)

获取此属性映射到的计算列的值是存储在数据库中,还是在读取时计算。

GetIsStoredConfigurationSource(IConventionProperty)

获取 ConfigurationSource 计算值 SQL 表达式。

GetJsonElementMappings(IPropertyBase)

返回此属性的 JSON 元素映射。

GetJsonPropertyName(IReadOnlyProperty)

获取用于映射到 JSON 列的实体的给定属性的 JSON 属性名称的值。

GetJsonPropertyNameConfigurationSource(IConventionProperty)

获取 ConfigurationSource 给定实体属性的 JSON 属性名称。

GetMappedStoreObjects(IReadOnlyProperty, StoreObjectType)

返回此属性映射到的类似表的存储对象。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

GetMaxLength(IProperty, StoreObjectIdentifier)

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

GetMaxLength(IReadOnlyProperty, StoreObjectIdentifier)

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

GetOrCreateOverrides(IConventionProperty, StoreObjectIdentifier, Boolean)

返回特定表式存储对象的属性 facet 重写。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

GetOrCreateOverrides(IConventionProperty, StoreObjectIdentifier)

返回特定表式存储对象的属性 facet 重写。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

GetOrCreateOverrides(IMutableProperty, StoreObjectIdentifier)

返回特定表式存储对象的属性 facet 重写。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

GetOverrides(IConventionProperty)

返回所有属性 facet 重写。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

GetOverrides(IMutableProperty)

返回所有属性 facet 重写。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

GetOverrides(IProperty)

返回所有属性 facet 重写。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

GetOverrides(IReadOnlyProperty)

返回所有属性 facet 重写。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

GetPrecision(IProperty, StoreObjectIdentifier)

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

GetPrecision(IReadOnlyProperty, StoreObjectIdentifier)

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

GetReaderFieldValue(IProperty, RelationalDataReader, Int32, Boolean)

从给定 relationalReader的读取此属性的值。

GetRelationalTypeMapping(IProperty)

返回 RelationalTypeMapping 最终模型的给定属性。

GetRelationalTypeMapping(IReadOnlyProperty)

返回 RelationalTypeMapping 最终模型的给定属性。

GetScale(IProperty, StoreObjectIdentifier)

获取此属性中允许的数据缩放。 例如,如果该属性是一个 Decimal ,则这是小数位数的最大数目。

GetScale(IReadOnlyProperty, StoreObjectIdentifier)

获取此属性中允许的数据缩放。 例如,如果该属性是一个 Decimal ,则这是小数位数的最大数目。

GetSqlQueryColumnMappings(IProperty)

返回属性映射到的 SQL 查询列。

GetTableColumnMappings(IProperty)

返回属性映射到的表列。

GetTableColumnMappings(IPropertyBase)

返回属性映射到的表列。

GetUpdateStoredProcedureParameterMappings(IProperty)

返回属性映射到的更新存储过程参数。

GetUpdateStoredProcedureResultColumnMappings(IProperty)

返回属性映射到的更新存储过程结果列。

GetViewColumnMappings(IProperty)

返回属性映射到的视图列。

GetViewColumnMappings(IPropertyBase)

返回属性映射到的视图列。

IsColumnNullable(IProperty, StoreObjectIdentifier)

检查映射到给定 IProperty 的列在数据库中创建时是否可为 null。

这取决于属性本身及其映射方式。 例如,TPH 类型层次结构中的派生不可为 null 属性将映射到可以为 null 的列。 以及共享同一表的可选类型的属性。

IsColumnNullable(IProperty)

检查映射到给定 IProperty 的列在数据库中创建时是否可为 null。

这取决于属性本身及其映射方式。 例如,TPH 类型层次结构中的派生不可为 null 属性将映射到可以为 null 的列。 以及共享同一表的可选类型的属性。

IsColumnNullable(IReadOnlyProperty, StoreObjectIdentifier)

检查映射到给定属性的列在数据库中创建时是否可为 null。

IsColumnNullable(IReadOnlyProperty)

检查映射到给定 IProperty 的列在数据库中创建时是否可为 null。

IsFixedLength(IProperty, StoreObjectIdentifier)

返回一个标志,指示属性是否能够仅存储固定长度的数据,如字符串。

IsFixedLength(IProperty)

返回一个标志,指示属性是否能够仅存储固定长度的数据,如字符串。

IsFixedLength(IReadOnlyProperty, StoreObjectIdentifier)

返回一个标志,该标志指示该属性是否能够仅存储固定长度的数据,例如字符串。

IsFixedLength(IReadOnlyProperty)

返回一个标志,该标志指示该属性是否能够仅存储固定长度的数据,例如字符串。

IsUnicode(IProperty, StoreObjectIdentifier)

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

IsUnicode(IReadOnlyProperty, StoreObjectIdentifier)

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

RemoveOverrides(IConventionProperty, StoreObjectIdentifier)

删除特定表式存储对象的属性 facet 重写。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

RemoveOverrides(IMutableProperty, StoreObjectIdentifier)

删除特定表式存储对象的属性 facet 重写。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

SetCollation(IConventionProperty, String, Boolean)

配置要用于此属性所映射到的列的排序规则。

SetCollation(IMutableProperty, String)

配置要用于此属性的列的排序规则。

SetColumnName(IConventionProperty, String, Boolean)

设置属性映射到的列。

SetColumnName(IConventionProperty, String, StoreObjectIdentifier, Boolean)

设置属性映射到特定表类似存储对象的列。

SetColumnName(IMutableProperty, String, StoreObjectIdentifier)

设置属性映射到特定表类似存储对象的列。

SetColumnName(IMutableProperty, String)

设置属性映射到的列。

SetColumnOrder(IConventionProperty, Nullable<Int32>, Boolean)

设置属性映射到的列的顺序。

SetColumnOrder(IMutableProperty, Nullable<Int32>)

设置属性映射到的列的顺序。

SetColumnType(IConventionProperty, String, Boolean)

设置属性映射到的列的数据库类型。

SetColumnType(IMutableProperty, String)

设置属性映射到的列的数据库类型。

SetComment(IConventionProperty, String, Boolean)

配置要应用于此属性所映射到的列的注释。

SetComment(IMutableProperty, String)

配置要应用于此属性所映射到的列的注释。

SetComputedColumnSql(IConventionProperty, String, Boolean)

设置用作此属性所映射到列的计算值的 SQL 表达式。

SetComputedColumnSql(IMutableProperty, String)

设置用作此属性所映射到列的计算值的 SQL 表达式。

SetDefaultConstraintName(IConventionProperty, String, Boolean)

设置默认约束名称。

SetDefaultConstraintName(IMutableProperty, String)

设置默认约束名称。

SetDefaultValue(IConventionProperty, Object, Boolean)

设置用作此属性映射到的列的默认值的对象。

SetDefaultValue(IMutableProperty, Object)

设置用作此属性映射到的列的默认值的对象。

SetDefaultValueSql(IConventionProperty, String, Boolean)

设置用作此属性映射到的列的默认值的 SQL 表达式。

SetDefaultValueSql(IMutableProperty, String)

设置用作此属性映射到的列的默认值的 SQL 表达式。

SetIsFixedLength(IConventionProperty, Nullable<Boolean>, Boolean)

设置一个标志,指示该属性是否能够仅存储固定长度的数据,例如字符串。

SetIsFixedLength(IMutableProperty, Nullable<Boolean>)

设置一个标志,指示该属性是否能够仅存储固定长度的数据,例如字符串。

SetIsStored(IConventionProperty, Nullable<Boolean>, Boolean)

设置此属性映射到的计算列的值是存储在数据库中,还是在读取时计算。

SetIsStored(IMutableProperty, Nullable<Boolean>)

设置此属性映射到的计算列的值是存储在数据库中,还是在读取时计算。

SetJsonPropertyName(IConventionProperty, String, Boolean)

设置用于映射到 JSON 列的实体的给定属性的 JSON 属性名称的值。

SetJsonPropertyName(IMutableProperty, String)

设置用于映射到 JSON 列的实体的给定属性的 JSON 属性名称的值。

TryGetDefaultValue(IReadOnlyProperty, Object)

返回用作此属性所映射到列的默认值的对象。

TryGetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier, Object)

返回用作此属性所映射到列的默认值的对象。

适用于