DbFunctionBuilder.IConventionDbFunctionBuilder.HasSchema 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置数据库函数的架构。
Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder IConventionDbFunctionBuilder.HasSchema (string schema, bool fromDataAnnotation);
abstract member Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder.HasSchema : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder
override this.Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder.HasSchema : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder
Function HasSchema (schema As String, fromDataAnnotation As Boolean) As IConventionDbFunctionBuilder Implements IConventionDbFunctionBuilder.HasSchema
参数
- schema
- String
数据库中函数的架构。
- fromDataAnnotation
- Boolean
指示配置是否是使用数据注释指定的。
返回
如果应用了配置,则为同一生成器实例, null
否则为 。
实现
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈