Table of Contents

Class SqlNode.Placeholders

Namespace
LfrlAnvil.Sql.Expressions
Assembly
LfrlAnvil.Sql.Core.dll

Creates placeholder node instances.

public static class SqlNode.Placeholders
Inheritance
SqlNode.Placeholders
Inherited Members

Methods

Condition(string?, bool)

Creates a new SqlConditionPlaceholderNode instance.

[Pure]
public static SqlConditionPlaceholderNode Condition(string? identifier = null, bool wrapInParentheses = true)

Parameters

identifier string

Optional custom placeholder identifier.

wrapInParentheses bool

Specifies whether to wrap replacement text in parentheses. Equal to true by default.

Returns

SqlConditionPlaceholderNode

New SqlConditionPlaceholderNode instance.

Expression(string?, bool)

Creates a new SqlExpressionPlaceholderNode instance.

[Pure]
public static SqlExpressionPlaceholderNode Expression(string? identifier = null, bool wrapInParentheses = true)

Parameters

identifier string

Optional custom placeholder identifier.

wrapInParentheses bool

Specifies whether to wrap replacement text in parentheses. Equal to true by default.

Returns

SqlExpressionPlaceholderNode

New SqlExpressionPlaceholderNode instance.

SortTrait(string?, bool)

Creates a new SqlSortTraitPlaceholderNode instance.

[Pure]
public static SqlSortTraitPlaceholderNode SortTrait(string? identifier = null, bool includeOrderBy = true)

Parameters

identifier string

Optional custom placeholder identifier.

includeOrderBy bool

Specifies whether to include the ORDER BY prefix. Equal to true by default.

Returns

SqlSortTraitPlaceholderNode

New SqlSortTraitPlaceholderNode instance.