Share via


IQueryTypeConfiguration<TQuery> Rozhraní

Definice

Upozornění

Use IEntityTypeConfiguration<TEntity> instead

Umožňuje konfiguraci pro typ dotazu zahrnout do samostatné třídy, nikoli do řádku v OnModelCreating(ModelBuilder). Implementujte toto rozhraní, použijte konfiguraci pro dotaz v Configure(QueryTypeBuilder<TQuery>) metodě a pak použijte konfiguraci pro model pomocí ApplyConfiguration<TQuery>(IQueryTypeConfiguration<TQuery>) v 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)

Parametry typu

TQuery

Typ dotazu, který se má konfigurovat.

Atributy

Metody

Configure(QueryTypeBuilder<TQuery>)
Zastaralé.

Nakonfiguruje dotaz typu TQuery.

Platí pro