Class RawVariableHandler
Injects a raw value directly into the SQL text without any escaping or modification.
public class RawVariableHandler : IQuerySegmentHandler
- Inheritance
-
RawVariableHandler
- Implements
- Inherited Members
- Extension Methods
Remarks
Use this only for trusted values such as dynamically generated table names or identifiers that cannot be parameterized.
Constructors
RawVariableHandler()
Injects a raw value directly into the SQL text without any escaping or modification.
public RawVariableHandler()
Remarks
Use this only for trusted values such as dynamically generated table names or identifiers that cannot be parameterized.
Fields
Instance
Singleton for RawVariableHandler
public static readonly RawVariableHandler Instance
Field Value
Methods
Build(string)
Used to create a HandlerGetter<T> delegate.
public static RawVariableHandler Build(string _)
Parameters
_string
Returns
Handle(ref ValueStringBuilder, object)
Writes the SQL for value into the query being built.
public 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.