Class E021_DateTimeRange_ef

Assembly: redb.Examples.dll

EF Core twin of : hired between three and one year ago, up to 100 whole employees.
OrderBy(_id) is EF's own need, the redb query has none: with split queries and Take, every child query must pick the same employees.
The date is marked UTC: redb stores a DateTime as a UTC clock reading, and Npgsql refuses a local DateTime for a timestamptz column.

[ExampleMeta("E021_ef", "EF: Where - DateTime Range", "Query", ExampleTier.Free, 1, new string[] { "EF" })]
public class E021_DateTimeRange_ef : EfExampleBase

Inheritance

Object→ExampleBase→EfExampleBase→E021_DateTimeRange_ef

Inherited Members

Methods

RunEfAsync(IDbContextFactory<FlatContext>)

Runs the example through EF Core.

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