namespace: Serenity.Data assembly: Serenity.Net.Data
Contains SQL syntax helpers.
public static class SqlSyntax
name | description |
---|---|
static AutoBracket(…) | Automatically brackets the string based on SqlSettings.AutoQuotedIdentifier setting. |
static AutoBracketValid(…) | Automatically brackets the string based on SqlSettings.AutoQuotedIdentifier setting, only if the identifier is valid. |
static IndexParam(…) | Returns an indexed parameter name like @p123. |
static IsQuoted(…) | Determines whether the specified string is quoted. |
static IsValidIdentifier(…) | Determines whether the specified string is a valid SQL identifier. |
static IsValidQuotedIdentifier(…) | Determines whether the specified string is a valid quoted SQL identifier. |
static TableAlias(…) | Creates a table alias like T0 |
static TableAliasDot(…) | Creates a table alias dot like "T0." |
static Unquote(…) | Unquotes the specified string. |
- Source: SqlSyntax.cs