Class Db
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
valueDateTimeThe member value.
Returns
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
Returns
Month(DateTime)
The month component of the value.
public static int Month(DateTime value)
Parameters
valueDateTimeThe member value.
Returns
Year(DateTime)
The year component of the value.
public static int Year(DateTime value)
Parameters
valueDateTimeThe member value.