語言

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
屬性
實作

備註

更多資訊與範例請參閱 模型建構慣例 。

建構函式

名稱 Description
RelationalMaxIdentifierLengthConvention(Int32, ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立一個新的 實例。RelationalMaxIdentifierLengthConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

MaxIdentifierLength

資料庫支援的最大物件識別碼長度。

RelationalDependencies

此服務的關聯提供者專屬相依關係。

方法

名稱 Description
ProcessModelInitialized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

在模型初始化後呼叫。

適用於