Struct WhereWithFilterInterpolatedStringHandler
- Assembly
- Dapper.SimpleSqlBuilder.dll
A handler used by the language compiler to append interpolated strings into IFluentBuilder instances.
public ref struct WhereWithFilterInterpolatedStringHandlerConstructors
WhereWithFilterInterpolatedStringHandler(int, int, IFluentBuilder, out bool)
Initializes a new instance of the WhereWithFilterInterpolatedStringHandler struct.
public WhereWithFilterInterpolatedStringHandler(int literalLength, int formattedCount, IFluentBuilder builder, out bool isHandlerEnabled)Parameters
literalLengthint-
The number of constant characters outside of interpolation expressions in the interpolated string.
formattedCountint-
The number of interpolation expressions in the interpolated string.
builderIFluentBuilder-
The fluent builder associated with the handler.
isHandlerEnabledbool-
The value that indicates whether the handler is enabled or disabled.
Exceptions
- ArgumentException
-
Thrown when
builderis null or doesn't implement IFluentBuilderFormatter.
WhereWithFilterInterpolatedStringHandler(int, int, bool, IFluentBuilder, out bool)
Initializes a new instance of the WhereWithFilterInterpolatedStringHandler struct.
public WhereWithFilterInterpolatedStringHandler(int literalLength, int formattedCount, bool condition, IFluentBuilder builder, out bool isHandlerEnabled)Parameters
literalLengthint-
The number of constant characters outside of interpolation expressions in the interpolated string.
formattedCountint-
The number of interpolation expressions in the interpolated string.
conditionbool-
The value to determine whether the handler should be enabled or disabled.
builderIFluentBuilder-
The fluent builder associated with the handler.
isHandlerEnabledbool-
The value that indicates whether the handler is enabled or disabled.
Exceptions
- ArgumentException
-
Thrown when
builderis null or doesn't implement IFluentBuilderFormatter.
Methods
AppendFormatted<T>(T)
Appends a value to the builder.
public void AppendFormatted<T>(T value)Parameters
valueT-
The value to append.
Type Parameters
T-
The type of the value.
AppendFormatted<T>(T, string?)
Appends a value to the builder.
public void AppendFormatted<T>(T value, string? format)Parameters
valueT-
The value to append.
formatstring?-
The format string for the value.
Type Parameters
T-
The type of the value.
AppendLiteral(string)
Appends a string to the builder.
public void AppendLiteral(string value)Parameters
valuestring-
The string to append.