语言

ISqlQueryColumn 接口

定义

表示 SQL 查询中的列。

public interface ISqlQueryColumn : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IColumnBase
type ISqlQueryColumn = interface
    interface IColumnBase
    interface IAnnotatable
type ISqlQueryColumn = interface
    interface IColumnBase
    interface IAnnotatable
    interface IReadOnlyAnnotatable
Public Interface ISqlQueryColumn
Implements IAnnotatable, IColumnBase
实现

注解

有关详细信息和示例 ,请参阅使用 EF Core 执行原始 SQL 命令 。

属性

名称 说明
IsNullable

获取指示列是否可以包含 NULL 的值。

(继承自 IColumnBase)
Item[String]

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

(继承自 IReadOnlyAnnotatable)
Name

获取列名。

(继承自 IColumnBase)
PropertyMappings

获取属性映射。

ProviderClrType

获取提供程序类型。

(继承自 IColumnBase)
ProviderValueComparer

获取此列的 ValueComparer。

(继承自 IColumnBase)
SqlQuery

获取包含 SQL 查询的 。

StoreType

获取列类型。

(继承自 IColumnBase)
StoreTypeMapping

获取类似列的 对象的类型映射。

(继承自 IColumnBase)
Table

获取包含类似表的 对象的 。

(继承自 IColumnBase)

方法

名称 说明
AddRuntimeAnnotation(String, Object)

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

(继承自 IAnnotatable)
AnnotationsToDebugString(Int32)

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

(继承自 IReadOnlyAnnotatable)
FindAnnotation(String)

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

(继承自 IReadOnlyAnnotatable)
FindColumnMapping(IReadOnlyEntityType)

返回给定实体类型的属性映射。

FindRuntimeAnnotation(String)

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

(继承自 IAnnotatable)
FindRuntimeAnnotationValue(String)

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

(继承自 IAnnotatable)
GetAnnotation(String)

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

(继承自 IReadOnlyAnnotatable)
GetAnnotations()

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

(继承自 IReadOnlyAnnotatable)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

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

(继承自 IAnnotatable)
GetRuntimeAnnotations()

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

(继承自 IAnnotatable)
RemoveRuntimeAnnotation(String)

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

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

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

(继承自 IAnnotatable)
ToDebugString(MetadataDebugStringOptions, Int32)

创建给定元数据的可读表示形式。

警告:不要依赖于返回的字符串的格式。 它仅用于调试,并且可能会在版本之间任意更改。

显式接口实现

名称 说明
IColumnBase.ToDebugString(MetadataDebugStringOptions, Int32)

创建给定元数据的可读表示形式。

警告:不要依赖于返回的字符串的格式。 它仅用于调试,并且可能会在版本之间任意更改。

扩展方法

名称 说明
AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

ToDebugString(ISqlQueryColumn, MetadataDebugStringOptions, Int32)

创建给定元数据的可读表示形式。

警告:不要依赖于返回的字符串的格式。 它仅用于调试,并且可能会在版本之间任意更改。

适用于