语言

IConventionDbFunctionBuilder.HasSchema(String, Boolean) 方法

定义

设置数据库函数的架构。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder? HasSchema(string? schema, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder HasSchema(string schema, bool fromDataAnnotation = false);
abstract member HasSchema : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder
Public Function HasSchema (schema As String, Optional fromDataAnnotation As Boolean = false) As IConventionDbFunctionBuilder

参数

schema
String

数据库中函数的架构。

fromDataAnnotation
Boolean

指示是否使用数据注释指定了配置。

返回

如果应用了配置,则为同一生成器实例, null 否则为同一个生成器实例。

适用于