Skip to content

v1.4.2

Choose a tag to compare

@zzzprojects zzzprojects released this 18 Sep 15:41
· 593 commits to master since this release

Download the library here

_EF+ Query IncludeOptimized

  • ADDED: IncludeOptimizedByPath to allow to specify a string path
  • FIXED: Collection now return empty collection instead of null when no data is found (like Include method)

The AllowIncludeSubPath is currently in beta

QueryIncludeOptimizedManager.AllowIncludeSubPath = true;

Enabling this property allow to automatically include nested collection

By example

ctx.Lefts
    .IncludeOptimized(x => x.Rights.SelectMany(y => y.Rights));

will be transformed into

ctx.Lefts
    .IncludeOptimized(x => x.Rights);
    .IncludeOptimized(x => x.Rights.SelectMany(y => y.Rights));