Table of Contents

Class SqlExpressionPlaceholderNode

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

Represents an SQL syntax tree expression placeholder node.

public sealed class SqlExpressionPlaceholderNode : SqlExpressionNode
Inheritance
SqlExpressionPlaceholderNode
Inherited Members
Extension Methods

Properties

Identifier

Placeholder's identifier.

public string Identifier { get; }

Property Value

string

SqlPlaceholder

Text that will be injected into the SQL statement by this placeholder.

public string SqlPlaceholder { get; }

Property Value

string

WrapInParentheses

Specifies whether to wrap replacement text in parentheses.

public bool WrapInParentheses { get; }

Property Value

bool

Methods

Replace(string, string)

Replaces this placeholder in the provided targetSql with the provided replacementSql.

[Pure]
public string Replace(string targetSql, string replacementSql)

Parameters

targetSql string

Text to replace this placeholder in.

replacementSql string

Text to replace this placeholder with.

Returns

string

Text with replaced placeholder.