Generic base class that implements IDbFormatter
Default constructor
protected Void AbstractDbFormatter()
Catalog separator.
public String CatalogSeparator { get; }
Quote identifier prefix.
public String QuoteIdentifierPrefix { get; }
Quote identifier suffix.
public String QuoteIdentifierSuffix { get; }
Quote parameter prefix.
public String QuoteParamPrefix { get; }
Quote parameter suffix.
public String QuoteParamSuffix { get; }
Schema separator.
public String SchemaSeparator { get; }
Formats a value to be included within a statement.
public String FormatValue(dataType, value)
A textual representation of value.
Name | Type | Summary |
---|---|---|
dataType | DbType | The data type of the value. |
value | Object | Value to be formatted. |
Get the operator string representation
public String GetComparisonOperator(op)
A string for the comparison operator.
Name | Type | Summary |
---|---|---|
op | ComparisonOperator | The comparison operator to retrieve. |
Gets the DateTime string.
public String GetDbDateTimeString()
Gets the DbType.
public String GetDbType(type)
Name | Type | Summary |
---|---|---|
type | DbType |
Get the operator string representation
public String GetRelationalOperator(op)
A string for the comparison operator.
Name | Type | Summary |
---|---|---|
op | RelationalOperator | The relational operator to retrieve. |
Quotes an identifier
public String QuoteIdentifier(identifier)
Name | Type | Summary |
---|---|---|
identifier | String | Identifier name. |
Quotes a parameter
public String QuoteParameter(paramName)
Name | Type | Summary |
---|---|---|
paramName | String | Parameter name. |
Unquote an identifier
public String UnquoteIdentifier(quotedIdentifier)
Name | Type | Summary |
---|---|---|
quotedIdentifier | String | Quoted identifier. |
Unquote a parameter
public String UnquoteParameter(quotedParameter)
Name | Type | Summary |
---|---|---|
quotedParameter | String | Quoted parameter. |
In this document