Share via


IConventionDbFunction 接口

定义

表示模型中的关系数据库函数,该函数的形式可在生成模型时发生改变。

public interface IConventionDbFunction : Microsoft.EntityFrameworkCore.Metadata.IDbFunction
public interface IConventionDbFunction : Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IDbFunction
public interface IConventionDbFunction : Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyDbFunction
type IConventionDbFunction = interface
    interface IDbFunction
type IConventionDbFunction = interface
    interface IConventionAnnotatable
    interface IAnnotatable
    interface IDbFunction
type IConventionDbFunction = interface
    interface IReadOnlyDbFunction
    interface IReadOnlyAnnotatable
    interface IConventionAnnotatable
Public Interface IConventionDbFunction
Implements IDbFunction
Public Interface IConventionDbFunction
Implements IConventionAnnotatable, IDbFunction
Public Interface IConventionDbFunction
Implements IConventionAnnotatable, IReadOnlyDbFunction
实现

注解

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

属性

Builder

获取可用于配置此函数的生成器。

FunctionName

数据库中函数的名称。

(继承自 IDbFunction)
IsAggregate

获取指示此函数是否为聚合函数的值。

(继承自 IReadOnlyDbFunction)
IsBuiltIn

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

(继承自 IReadOnlyDbFunction)
IsInModel

指示此对象是否位于模型中,即尚未从模型中删除。

(继承自 IConventionAnnotatable)
IsNullable

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

(继承自 IReadOnlyDbFunction)
IsScalar

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

(继承自 IReadOnlyDbFunction)
Item[String]

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

(继承自 IReadOnlyAnnotatable)
MethodInfo

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

(继承自 IReadOnlyDbFunction)
Model

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

ModelName

获取模型中函数的名称。

(继承自 IReadOnlyDbFunction)
Name

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

(继承自 IReadOnlyDbFunction)
Parameters

获取此函数的参数

ReturnType

获取返回的 CLR 类型。

(继承自 IReadOnlyDbFunction)
Schema

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

(继承自 IReadOnlyDbFunction)
StoreFunction

获取关联的 IStoreFunction

(继承自 IDbFunction)
StoreType

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

(继承自 IReadOnlyDbFunction)
Translation

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

(继承自 IReadOnlyDbFunction)
TypeMapping

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

(继承自 IReadOnlyDbFunction)

方法

AddAnnotation(String, Object, Boolean)

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

(继承自 IConventionAnnotatable)
AddAnnotations(IEnumerable<IConventionAnnotation>, Boolean)

向 对象添加批注。

(继承自 IConventionAnnotatable)
AddRuntimeAnnotation(String, Object)

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

(继承自 IAnnotatable)
AnnotationsToDebugString(Int32)

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

(继承自 IReadOnlyAnnotatable)
FindAnnotation(String)

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

(继承自 IReadOnlyAnnotatable)
FindRuntimeAnnotation(String)

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

(继承自 IAnnotatable)
FindRuntimeAnnotationValue(String)

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

(继承自 IAnnotatable)
GetAnnotation(String)

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

(继承自 IReadOnlyAnnotatable)
GetAnnotations()

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

(继承自 IReadOnlyAnnotatable)
GetConfigurationSource()

获取此函数的配置源。

GetIsBuiltInConfigurationSource()

获取 的配置 IsBuiltIn源。

GetIsNullableConfigurationSource()

获取 的配置 IsNullable源。

GetNameConfigurationSource()

获取 的配置 Name源。

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

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

(继承自 IAnnotatable)
GetRuntimeAnnotations()

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

(继承自 IAnnotatable)
GetSchemaConfigurationSource()

获取 的配置 Schema源。

GetStoreTypeConfigurationSource()

获取 的配置 StoreType源。

GetTranslationConfigurationSource()

获取 的配置 Translation源。

GetTypeMappingConfigurationSource()

获取 的配置 TypeMapping源。

RemoveAnnotation(String)

从此对象中删除具有给定名称的批注。

(继承自 IConventionAnnotatable)
RemoveRuntimeAnnotation(String)

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

(继承自 IAnnotatable)
SetAnnotation(String, Object, Boolean)

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

(继承自 IConventionAnnotatable)
SetIsBuiltIn(Boolean, Boolean)

设置指示数据库函数是否内置的值。

SetIsNullable(Boolean, Boolean)

设置指示数据库函数是否可以返回 null 值的值。

SetName(String, Boolean)

设置数据库中函数的名称。

SetOrRemoveAnnotation(String, Object, Boolean)

设置存储在给定名称下的批注。 如果具有指定名称的注释已存在,则覆盖现有批注。 如果 null 提供,则删除现有批注。

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

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

(继承自 IAnnotatable)
SetSchema(String, Boolean)

设置数据库中函数的架构。

SetStoreType(String, Boolean)

在数据库中设置函数的存储类型。

SetTranslation(Func<IReadOnlyCollection<SqlExpression>,SqlExpression>, Boolean)

设置转换回调,以便对 SQL 表达式片段执行方法调用的自定义转换。

SetTranslation(Func<IReadOnlyList<SqlExpression>,SqlExpression>, Boolean)

设置转换回调,以便对 SQL 表达式片段执行方法调用的自定义转换。

SetTypeMapping(RelationalTypeMapping, Boolean)

设置数据库中函数的类型映射。

ToDebugString(MetadataDebugStringOptions, Int32)

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

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

(继承自 IReadOnlyDbFunction)

扩展方法

AddAnnotations(IConventionAnnotatable, IEnumerable<IConventionAnnotation>, Boolean)

向 对象添加批注。

GetAnnotation(IConventionAnnotatable, String)

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

SetOrRemoveAnnotation(IConventionAnnotatable, String, Object, Boolean)

设置存储在给定名称下的批注。 如果具有指定名称的注释已存在,则覆盖现有批注。 如果 null 提供,则删除现有批注。

AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

ToDebugString(IDbFunction, MetadataDebugStringOptions, Int32)

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

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

适用于