RelationalMaxIdentifierLengthConvention 類別

定義

設定資料庫所支援之物件識別碼長度上限的慣例。

public class RelationalMaxIdentifierLengthConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
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>)

在初始化模型之後呼叫。

適用於