Class E140_DistinctByRedb_ef

Assembly: redb.Examples.dll

EF Core twin of : up to 100 employees with distinct names, as whole objects.
EF has no DISTINCT ON; it groups by the name, keeps the smallest key of each group and loads by those keys.

[ExampleMeta("E140_ef", "EF: DistinctByRedb - By Field", "Analytics", ExampleTier.Pro, 1, new string[] { "EF", "Distinct" })]
public class E140_DistinctByRedb_ef : EfExampleBase

Inheritance

Object→ExampleBase→EfExampleBase→E140_DistinctByRedb_ef

Inherited Members

Methods

RunEfAsync(IDbContextFactory<FlatContext>)

Runs the example through EF Core.

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