IQueryTypeConfiguration<TQuery> Interface

Definition

Caution

Use IEntityTypeConfiguration<TEntity> instead

Allows configuration for a query type to be factored into a separate class, rather than in-line in OnModelCreating(ModelBuilder). Implement this interface, applying configuration for the query in the Configure(QueryTypeBuilder<TQuery>) method, and then apply the configuration to the model using ApplyConfiguration<TQuery>(IQueryTypeConfiguration<TQuery>) in 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)

Type Parameters

TQuery

The query type to be configured.

Attributes

Methods

Configure(QueryTypeBuilder<TQuery>)

Configures the query of type TQuery.

Applies to