Class E139_DistinctRedb_ef

Assembly: redb.Examples.dll

EF Core twin of : up to 100 employees unique by every header field except
the key, as whole objects. EF has no DISTINCT ON; its usual way is to group by those fields, keep the
smallest key of each group, then load the objects by those keys.

[ExampleMeta("E139_ef", "EF: DistinctRedb - Find Duplicates", "Analytics", ExampleTier.Pro, 1, new string[] { "EF", "Distinct" })]
public class E139_DistinctRedb_ef : EfExampleBase

Inheritance

Object→ExampleBase→EfExampleBase→E139_DistinctRedb_ef

Inherited Members

Methods

RunEfAsync(IDbContextFactory<FlatContext>)

Runs the example through EF Core.

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