语言

IDbFunction 接口

定义

表示模型中的关系数据库函数。

public interface IDbFunction : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyDbFunction
public interface IDbFunction
public interface IDbFunction : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
type IDbFunction = interface
    interface IReadOnlyDbFunction
    interface IReadOnlyAnnotatable
    interface IAnnotatable
type IDbFunction = interface
type IDbFunction = interface
    interface IAnnotatable
Public Interface IDbFunction
Implements IAnnotatable, IReadOnlyDbFunction
Public Interface IDbFunction
Public Interface IDbFunction
Implements IAnnotatable
派生
实现

注解

有关详细信息和示例,请参阅 数据库函数 。

属性

名称 说明
FunctionName

数据库中函数的名称。

IsAggregate

获取一个值,该值指示此函数是否为聚合函数。

IsBuiltIn

获取一个值,该值指示数据库函数是否内置。

IsNullable

获取一个值,该值指示数据库函数是否可以返回 null。

IsScalar

获取一个值,该值指示此函数是否返回标量值。

Item[String]

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

(继承自 IReadOnlyAnnotatable)
MethodInfo

获取映射到数据库中函数的 CLR 方法。

Model

获取在其中定义此函数的模型。

ModelName

获取模型中函数的名称。

Name

获取数据库中函数的名称。

Parameters

获取此函数的参数

ReturnType

获取返回的 CLR 类型。

Schema

获取数据库中函数的架构。

StoreFunction

获取关联的 IStoreFunction。

StoreType

获取配置的存储类型字符串。

Translation

获取用于执行方法调用到 SQL 表达式片段中的自定义转换的转换回调。

TypeMapping

获取函数返回类型的类型映射。

方法

名称 说明
AddRuntimeAnnotation(String, Object)

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

(继承自 IAnnotatable)
AnnotationsToDebugString(Int32)

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

(继承自 IReadOnlyAnnotatable)
FindAnnotation(String)

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

(继承自 IReadOnlyAnnotatable)
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)

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

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

(继承自 IReadOnlyDbFunction)

扩展方法

名称 说明
AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

ToDebugString(IDbFunction, MetadataDebugStringOptions, Int32)

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

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

适用于