SqlServerMemoryOptimizedTablesConvention 類別

定義

將索引設定為記憶體優化資料表非叢集的慣例。

public class SqlServerMemoryOptimizedTablesConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IIndexAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IKeyAddedConvention
type SqlServerMemoryOptimizedTablesConvention = class
    interface IEntityTypeAnnotationChangedConvention
    interface IConvention
    interface IKeyAddedConvention
    interface IIndexAddedConvention
Public Class SqlServerMemoryOptimizedTablesConvention
Implements IEntityTypeAnnotationChangedConvention, IIndexAddedConvention, IKeyAddedConvention
繼承
SqlServerMemoryOptimizedTablesConvention
實作

備註

如需詳細資訊和範例,請參閱使用 EF Core建立模型慣例存取SQL Server和Azure SQL資料庫

建構函式

SqlServerMemoryOptimizedTablesConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立 SqlServerMemoryOptimizedTablesConvention 的新執行個體。

屬性

Dependencies

此服務的相依性。

RelationalDependencies

此服務的關聯式提供者特定相依性。

方法

ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

在實體類型上變更批註之後呼叫。

ProcessIndexAdded(IConventionIndexBuilder, IConventionContext<IConventionIndexBuilder>)

在索引新增至實體類型之後呼叫。

ProcessKeyAdded(IConventionKeyBuilder, IConventionContext<IConventionKeyBuilder>)

在將索引鍵新增至實體類型之後呼叫。

適用於