DbFunctionBuilderBase 类

定义

提供用于配置 的 IMutableDbFunction简单 API。

public abstract class DbFunctionBuilderBase : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder>
type DbFunctionBuilderBase = class
    interface IInfrastructure<IConventionDbFunctionBuilder>
Public MustInherit Class DbFunctionBuilderBase
Implements IInfrastructure(Of IConventionDbFunctionBuilder)
继承
DbFunctionBuilderBase
派生
实现

注解

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

构造函数

DbFunctionBuilderBase(IMutableDbFunction)

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

属性

Builder

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

Metadata

正在配置的函数。

方法

HasName(String)

设置数据库函数的名称。

HasParameter(String)

返回一个 对象,该对象可用于配置具有给定名称的参数。 如果不存在具有给定名称的参数,则将添加新参数。

HasParameter(String, Action<DbFunctionParameterBuilder>)

返回一个 对象,该对象可用于配置具有给定名称的参数。 如果不存在具有给定名称的参数,则将添加新参数。

HasSchema(String)

设置数据库函数的架构。

IsBuiltIn(Boolean)

标记数据库函数是否为内置函数。

显式接口实现

IInfrastructure<IConventionDbFunctionBuilder>.Instance

获取隐藏的属性的值。

扩展方法

GetInfrastructure<T>(IInfrastructure<T>)

从使用 IInfrastructure<T>隐藏的属性中获取值。

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

适用于