Table of Contents

Enum ImplicitCollectionLoading

Namespace
LinqToDB
Assembly
linq2db.dll

Controls whether a collection projected without an explicit eager-load request — i.e. without LoadWith/ThenLoad or a WithUnionLoadStrategy/WithKeyedLoadStrategy/WithSeparateLoadStrategy marker — is allowed. Set via ImplicitCollectionLoading.

public enum ImplicitCollectionLoading
Extension Methods

Fields

Allow = 0

Implicit collection loading is allowed: a collection projected in a Select without an explicit eager-load request is loaded as usual. This is the default.

Throw = 1

Implicit collection loading is rejected: such a query throws LinqToDBException at build time. Request the load explicitly with LoadWith/ThenLoad, or opt the whole query in with a With*LoadStrategy marker.