Table of Contents

Class Db

Namespace
eQuantic.Core.Data.Query
Assembly
eQuantic.Core.Data.dll

Query function markers — call them inside a filter lambda and the interpreter translates them to the store's native function (LIKE, EXTRACT/YEAR, …) through the dialect's function registry. Every marker also has a real C# implementation with the same semantics, so a dialect that has no translation degrades the clause to the gated client-side residual instead of failing — the same rule applies to the markers you write yourself: give them a real body, register a translation with Functions.Map(...), and they behave exactly like these.

public static class Db
Inheritance
Db
Inherited Members

Methods

Day(DateTime)

The day component of the value.

public static int Day(DateTime value)

Parameters

value DateTime

The member value.

Returns

int

Like(string?, string)

SQL LIKE with a raw pattern — % and _ are wildcards under your control (unlike StartsWith/Contains, which escape them). Case sensitivity follows the store's collation; the client-side fallback is case-sensitive.

public static bool Like(string? value, string pattern)

Parameters

value string

The member value.

pattern string

The LIKE pattern.

Returns

bool

Month(DateTime)

The month component of the value.

public static int Month(DateTime value)

Parameters

value DateTime

The member value.

Returns

int

Year(DateTime)

The year component of the value.

public static int Year(DateTime value)

Parameters

value DateTime

The member value.

Returns

int