Class E127_AggregateAsync_ef
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
Inherited Members
ExampleBase.ExplicitlyRequestedIds,ExampleBase.Fail(string, string, ExampleTier, long, string),ExampleBase.GetMeta(),ExampleBase.Ok(string, string, ExampleTier, long, int, string[], string?),ExampleBase.Ok(string, string, ExampleTier, long, string[], string?),ExampleBase.RunAsync(IRedbService),EfExampleBase.Contexts,EfExampleBase.NotSupported(string, string, ExampleTier, string),EfExampleBase.RunAsync(IRedbService),EfExampleBase.RunEfAsync(IDbContextFactory<FlatContext>)
Methods
RunEfAsync(IDbContextFactory<FlatContext>)
Runs the example through EF Core.
public override Task<ExampleResult> RunEfAsync(IDbContextFactory<FlatContext> contexts)