SqlServerIndexConvention Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Konvence, která konfiguruje filtr pro jedinečné neskupené indexy se sloupci s možnou hodnotou null, aby odfiltrovaly hodnoty null.
[System.Runtime.CompilerServices.Nullable(0)]
public class SqlServerIndexConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IIndexAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IIndexAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IIndexUniquenessChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyNullabilityChangedConvention
public class SqlServerIndexConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IIndexAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IIndexAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IIndexUniquenessChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyNullabilityChangedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerIndexConvention = class
interface IEntityTypeBaseTypeChangedConvention
interface IConvention
interface IIndexAddedConvention
interface IIndexUniquenessChangedConvention
interface IIndexAnnotationChangedConvention
interface IPropertyNullabilityChangedConvention
interface IPropertyAnnotationChangedConvention
type SqlServerIndexConvention = class
interface IEntityTypeBaseTypeChangedConvention
interface IConvention
interface IIndexAddedConvention
interface IIndexUniquenessChangedConvention
interface IIndexAnnotationChangedConvention
interface IPropertyNullabilityChangedConvention
interface IPropertyAnnotationChangedConvention
Public Class SqlServerIndexConvention
Implements IEntityTypeBaseTypeChangedConvention, IIndexAddedConvention, IIndexAnnotationChangedConvention, IIndexUniquenessChangedConvention, IPropertyAnnotationChangedConvention, IPropertyNullabilityChangedConvention
- Dědičnost
-
SqlServerIndexConvention
- Atributy
- Implementuje
Poznámky
Další informace a příklady najdete v tématu Konvence vytváření modelůa přístup k databázím SQL Server a Azure SQL s EF Core.
Konstruktory
| Název | Description |
|---|---|
| SqlServerIndexConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies, ISqlGenerationHelper) |
Vytvoří novou instanci .SqlServerIndexConvention |
Vlastnosti
| Název | Description |
|---|---|
| Dependencies |
Závislosti pro tuto službu. |
| RelationalDependencies |
Závislosti specifické pro relačního zprostředkovatele pro tuto službu. |