Share via


SqlServerMemoryOptimizedTablesConvention Class

Definition

A convention that configures indexes as non-clustered for memory-optimized tables.

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
Inheritance
SqlServerMemoryOptimizedTablesConvention
Implements

Remarks

See Model building conventions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.

Constructors

SqlServerMemoryOptimizedTablesConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Creates a new instance of SqlServerMemoryOptimizedTablesConvention.

Properties

Dependencies

Dependencies for this service.

RelationalDependencies

Relational provider-specific dependencies for this service.

Methods

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

Called after an annotation is changed on an entity type.

ProcessIndexAdded(IConventionIndexBuilder, IConventionContext<IConventionIndexBuilder>)

Called after an index is added to the entity type.

ProcessKeyAdded(IConventionKeyBuilder, IConventionContext<IConventionKeyBuilder>)

Called after a key is added to the entity type.

Applies to