IQueryTypeConfiguration<TQuery> Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
Applies to
Feedback
Submit and view feedback for