Table of Contents

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 EntityQueryRootExpression

The first query root.

second EntityQueryRootExpression

The second query root.

Returns

bool

CreateQueryRoot(IEntityType, EntityQueryRootExpression?)

EntityQueryRootExpression CreateQueryRoot(IEntityType entityType, EntityQueryRootExpression? source)

Parameters

entityType IEntityType

Entity type of the new EntityQueryRootExpression.

source EntityQueryRootExpression

Source expression.

Returns

EntityQueryRootExpression

ValidateQueryRootCreation(IEntityType, EntityQueryRootExpression?)

Validates whether a new EntityQueryRootExpression can be created.

void ValidateQueryRootCreation(IEntityType entityType, EntityQueryRootExpression? source)

Parameters

entityType IEntityType

Entity type of the new EntityQueryRootExpression.

source EntityQueryRootExpression

Source expression.