IQueryTypeConfiguration<TQuery> Interface

Definição

Cuidado

Use IEntityTypeConfiguration<TEntity> instead

Permite que a configuração de um tipo de consulta seja fatorada em uma classe separada, em vez de em linha em OnModelCreating(ModelBuilder). Implemente essa interface, aplicando a configuração para a consulta no método e, em Configure(QueryTypeBuilder<TQuery>) seguida, aplique a configuração ao modelo usando ApplyConfiguration<TQuery>(IQueryTypeConfiguration<TQuery>) em OnModelCreating(ModelBuilder).

public interface IQueryTypeConfiguration<TQuery> where TQuery : class
[System.Obsolete("Use IEntityTypeConfiguration<TEntity> instead")]
public interface IQueryTypeConfiguration<TQuery> where TQuery : class
type IQueryTypeConfiguration<'Query (requires 'Query : null)> = interface
[<System.Obsolete("Use IEntityTypeConfiguration<TEntity> instead")>]
type IQueryTypeConfiguration<'Query (requires 'Query : null)> = interface
Public Interface IQueryTypeConfiguration(Of TQuery)

Parâmetros de tipo

TQuery

O tipo de consulta a ser configurado.

Atributos

Métodos

Configure(QueryTypeBuilder<TQuery>)
Obsoleto.

Configura a consulta do tipo TQuery.

Aplica-se a