Class E032_StringContainsIgnoreCase_ef

Assembly: redb.Examples.dll

EF Core twin of : LastName contains smith in any case, 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.
EF Core does not translate Contains with a StringComparison; the PostgreSQL provider's own EF.Functions.ILike is the EF way to say it.

[ExampleMeta("E032_ef", "EF: Where - Contains IgnoreCase", "Query", ExampleTier.Free, 1, new string[] { "EF" })]
public class E032_StringContainsIgnoreCase_ef : EfExampleBase

Inheritance

Object→ExampleBase→EfExampleBase→E032_StringContainsIgnoreCase_ef

Inherited Members

Methods

RunEfAsync(IDbContextFactory<FlatContext>)

Runs the example through EF Core.

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