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数据库

适用于