语言

SqlServerDbFunctionConvention 类

定义

一种约定,确保 Schema 为已 IsBuiltIn 设置为 false标志的数据库函数填充该约定。

[System.Runtime.CompilerServices.Nullable(0)]
public class SqlServerDbFunctionConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
public class SqlServerDbFunctionConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerDbFunctionConvention = class
    interface IModelFinalizingConvention
    interface IConvention
type SqlServerDbFunctionConvention = class
    interface IModelFinalizingConvention
    interface IConvention
Public Class SqlServerDbFunctionConvention
Implements IModelFinalizingConvention
继承
SqlServerDbFunctionConvention
特性
实现

注解

有关详细信息和示例,请参阅使用 EF Core 访问SQL Server和Azure SQL数据库。

构造函数

名称 说明
SqlServerDbFunctionConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

创建 SqlServerDbFunctionConvention的新实例。

属性

名称 说明
Dependencies

此服务的依赖项。

RelationalDependencies

此服务的关系提供程序特定的依赖项。

方法

名称 说明
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

在完成模型时调用。

适用于