Table of Contents

Class SqlSortTraitPlaceholderNode

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

Represents an SQL syntax tree sort trait placeholder node.

public sealed class SqlSortTraitPlaceholderNode : SqlTraitNode
Inheritance
SqlSortTraitPlaceholderNode
Inherited Members

Properties

Identifier

Placeholder's identifier.

public string Identifier { get; }

Property Value

string

IncludeOrderBy

Specifies whether this node should include the ORDER BY prefix.

public bool IncludeOrderBy { get; }

Property Value

bool

SqlPlaceholder

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

public string SqlPlaceholder { get; }

Property Value

string

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.