Udostępnij za pośrednictwem


IQueryTypeConfiguration<TQuery> Interfejs

Definicja

Przestroga

Use IEntityTypeConfiguration<TEntity> instead

Umożliwia skonfigurowanie typu zapytania, które należy uwzględnić w oddzielnej klasie, a nie w wierszu polecenia OnModelCreating(ModelBuilder). Zaimplementuj ten interfejs, stosując konfigurację zapytania w Configure(QueryTypeBuilder<TQuery>) metodzie , a następnie zastosuj konfigurację do modelu przy użyciu polecenia w OnModelCreating(ModelBuilder)metodzie ApplyConfiguration<TQuery>(IQueryTypeConfiguration<TQuery>) .

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 zapytania do skonfigurowania.

Atrybuty

Metody

Configure(QueryTypeBuilder<TQuery>)
Przestarzałe.

Konfiguruje zapytanie typu TQuery.

Dotyczy