Sql class

Encapsulates parameterized SQL.

public abstract class Sql

Public Members

name description
static readonly Empty An empty SQL string.
static Concat(…) Concatenates SQL fragments. (2 methods)
static Format(…) Creates SQL from a formatted string.
static Join(…) Joins SQL fragments with the specified separator. (2 methods)
static LikePrefixParam(…) Creates SQL for an arbitrarily named parameter with the specified fragment of a LIKE pattern followed by a trailing %.
static Name(…) Creates SQL for a quoted identifier.
static Param(…) Creates SQL for an arbitrarily named parameter with the specified value.
static Raw(…) Creates SQL from a raw string.
operator + Concatenates two SQL fragments.

Protected Members

name description
Sql() The default constructor.

See Also