Class SqlFunctionRegistry
- Namespace
- eQuantic.Core.Data.Relational
- Assembly
- eQuantic.Core.Data.Relational.dll
The dialect's function translations, keyed by the marker method's name. The engine ships the
standard set (ToLower/ToUpper/Trim, Db.Like, IsNullOrEmpty,
Db.Year/Month/Day); map your own with Map(string, Func<string, IReadOnlyList<string>, string>) — write a static marker
method with a real C# body (so an unmapped dialect can still run it client-side), call it in your lambdas,
and register how this dialect renders it. The renderer hands you the quoted column and the bound
parameter markers; you return the SQL fragment.
public sealed class SqlFunctionRegistry
- Inheritance
-
SqlFunctionRegistry
- Inherited Members
Methods
Map(string, Func<string, IReadOnlyList<string>, string>)
Registers (or replaces) a function translation.
public SqlFunctionRegistry Map(string function, Func<string, IReadOnlyList<string>, string> render)
Parameters
functionstringThe marker method's name.
renderFunc<string, IReadOnlyList<string>, string>Renders the fragment from the quoted column and the bound argument markers.
Returns
- SqlFunctionRegistry
The same registry for chaining.