Compartilhar via


SqlServerValueGenerationStrategyConvention Classe

Definição

Uma convenção que configura o modelo SqlServerValueGenerationStrategy padrão como IdentityColumn.

public class SqlServerValueGenerationStrategyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
public class SqlServerValueGenerationStrategyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
type SqlServerValueGenerationStrategyConvention = class
    interface IModelInitializedConvention
    interface IConvention
    interface IModelFinalizedConvention
type SqlServerValueGenerationStrategyConvention = class
    interface IModelInitializedConvention
    interface IConvention
    interface IModelFinalizingConvention
Public Class SqlServerValueGenerationStrategyConvention
Implements IModelFinalizedConvention, IModelInitializedConvention
Public Class SqlServerValueGenerationStrategyConvention
Implements IModelFinalizingConvention, IModelInitializedConvention
Herança
SqlServerValueGenerationStrategyConvention
Implementações

Comentários

Consulte Convenções de criação de modelo e Acessando bancos de dados SQL Server e SQL do Azure com o EF Core para obter mais informações e exemplos.

Aplica-se a