语言

RelationalMaxIdentifierLengthConvention 类

定义

一种约定,用于配置数据库支持的最大对象标识符长度。

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

注解

有关详细信息和示例,请参阅 模型生成约定 。

构造函数

名称 说明
RelationalMaxIdentifierLengthConvention(Int32, ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

创建 RelationalMaxIdentifierLengthConvention的新实例。

属性

名称 说明
Dependencies

此服务的依赖项。

MaxIdentifierLength

数据库支持的最大对象标识符长度。

RelationalDependencies

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

方法

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

在初始化模型后调用。

适用于