Interface INavigationExpansionExtensibilityHelper
- Namespace
- Microsoft.EntityFrameworkCore.Query
- Assembly
- Microsoft.EntityFrameworkCore.dll
Service which helps with various aspects of navigation expansion extensibility.
public interface INavigationExpansionExtensibilityHelper
Remarks
The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.
See Implementation of database providers and extensions and How EF Core queries work for more information and examples.
Methods
AreQueryRootsCompatible(EntityQueryRootExpression?, EntityQueryRootExpression?)
Checks whether two query roots are compatible for a set operation to combine them.
bool AreQueryRootsCompatible(EntityQueryRootExpression? first, EntityQueryRootExpression? second)
Parameters
first
EntityQueryRootExpressionThe first query root.
second
EntityQueryRootExpressionThe second query root.
Returns
CreateQueryRoot(IEntityType, EntityQueryRootExpression?)
Creates a new EntityQueryRootExpression.
EntityQueryRootExpression CreateQueryRoot(IEntityType entityType, EntityQueryRootExpression? source)
Parameters
entityType
IEntityTypeEntity type of the new EntityQueryRootExpression.
source
EntityQueryRootExpressionSource expression.
Returns
ValidateQueryRootCreation(IEntityType, EntityQueryRootExpression?)
Validates whether a new EntityQueryRootExpression can be created.
void ValidateQueryRootCreation(IEntityType entityType, EntityQueryRootExpression? source)
Parameters
entityType
IEntityTypeEntity type of the new EntityQueryRootExpression.
source
EntityQueryRootExpressionSource expression.