Interface IQuerySegmentHandler
Turns a variable's value into the SQL text that stands in its place, quoting a string, expanding a list, writing a number, or injecting raw text. Register your own under a suffix letter in BaseHandlerMapper to add a marker of your own.
public interface IQuerySegmentHandler
- Extension Methods
Fields
NotSet
A placeholder handler for a spot a special handler will bind later. Trying to render it before that throws, so an unbound handler surfaces at once rather than producing wrong SQL.
public static readonly IQuerySegmentHandler NotSet
Field Value
Methods
Handle(ref ValueStringBuilder, object)
Writes the SQL for value into the query being built.
void Handle(ref ValueStringBuilder sb, object value)
Parameters
sbValueStringBuilderThe builder the query is being assembled in.
valueobjectThe value bound to this spot for the current run.