SqlServerMemoryOptimizedTablesConvention Klasa

Definicja

Konwencja, która konfiguruje indeksy jako nieklasterowane dla tabel zoptymalizowanych pod kątem pamięci.

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
Dziedziczenie
SqlServerMemoryOptimizedTablesConvention
Implementuje

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Konwencje tworzenia modeli oraz Uzyskiwanie dostępu do SQL Server i Azure SQL baz danych za pomocą programu EF Core.

Konstruktory

SqlServerMemoryOptimizedTablesConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Tworzy nowe wystąpienie klasy SqlServerMemoryOptimizedTablesConvention.

Właściwości

Dependencies

Zależności dla tej usługi.

RelationalDependencies

Zależności specyficzne dla dostawcy relacyjnego dla tej usługi.

Metody

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

Wywoływane po zmianie adnotacji w typie jednostki.

ProcessIndexAdded(IConventionIndexBuilder, IConventionContext<IConventionIndexBuilder>)

Wywoływane po dodaniu indeksu do typu jednostki.

ProcessKeyAdded(IConventionKeyBuilder, IConventionContext<IConventionKeyBuilder>)

Wywoływane po dodaniu klucza do typu jednostki.

Dotyczy