QuerySplittingBehavior Enum

Definition

Indicates how the related collections in a query should be loaded from database.

C#
public enum QuerySplittingBehavior
Inheritance
QuerySplittingBehavior

Fields

Name Value Description
SingleQuery 0

The related collections will be loaded in same database query as parent query.

SplitQuery 1

The related collections will be loaded in separate database queries from the parent query.

Remarks

See EF Core split queries for more information and examples.

Applies to

Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0