Class E127_AggregateAsync_ef

Assembly: redb.Examples.dll

EF Core twin of : eight aggregates in one query. EF has no batch aggregate
API; the usual way is to group the whole set by a constant. The nested floor is reached through the
navigations EmployeeProps -> HomeAddress -> Building, which EF turns into two joins (Include plays no part
in an aggregate).

[ExampleMeta("E127_ef", "EF: AggregateAsync - Batch", "Analytics", ExampleTier.Free, 1, new string[] { "EF" })]
public class E127_AggregateAsync_ef : EfExampleBase

Inheritance

Object→ExampleBase→EfExampleBase→E127_AggregateAsync_ef

Inherited Members

Methods

RunEfAsync(IDbContextFactory<FlatContext>)

Runs the example through EF Core.

public override Task<ExampleResult> RunEfAsync(IDbContextFactory<FlatContext> contexts)