AbstractDbFormatter

Generic base class that implements IDbFormatter

Namespace:
Inetdev.Data
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
Yes
Inherits from:
System.Object
Implements:
Inetdev.Data.IDbFormatter

Constructors

AbstractDbFormatter

Default constructor

Signature:
protected Void AbstractDbFormatter()

Properties

CatalogSeparator

Catalog separator.

Signature:
public String CatalogSeparator { get; }

QuoteIdentifierPrefix

Quote identifier prefix.

Signature:
public String QuoteIdentifierPrefix { get; }

QuoteIdentifierSuffix

Quote identifier suffix.

Signature:
public String QuoteIdentifierSuffix { get; }

QuoteParamPrefix

Quote parameter prefix.

Signature:
public String QuoteParamPrefix { get; }

QuoteParamSuffix

Quote parameter suffix.

Signature:
public String QuoteParamSuffix { get; }

SchemaSeparator

Schema separator.

Signature:
public String SchemaSeparator { get; }

Methods

FormatValue

Formats a value to be included within a statement.

Signature:
public String FormatValue(dataType, value)
Returns

A textual representation of value.

Parameters
Name Type Summary
dataType DbType The data type of the value.
value Object Value to be formatted.

GetComparisonOperator

Get the operator string representation

Signature:
public String GetComparisonOperator(op)
Returns

A string for the comparison operator.

Parameters
Name Type Summary
op ComparisonOperator The comparison operator to retrieve.

GetDbDateTimeString

Gets the DateTime string.

Signature:
public String GetDbDateTimeString()

GetDbType

Gets the DbType.

Signature:
public String GetDbType(type)
Parameters
Name Type Summary
type DbType

GetRelationalOperator

Get the operator string representation

Signature:
public String GetRelationalOperator(op)
Returns

A string for the comparison operator.

Parameters
Name Type Summary
op RelationalOperator The relational operator to retrieve.

QuoteIdentifier

Quotes an identifier

Signature:
public String QuoteIdentifier(identifier)
Parameters
Name Type Summary
identifier String Identifier name.

QuoteParameter

Quotes a parameter

Signature:
public String QuoteParameter(paramName)
Parameters
Name Type Summary
paramName String Parameter name.

UnquoteIdentifier

Unquote an identifier

Signature:
public String UnquoteIdentifier(quotedIdentifier)
Parameters
Name Type Summary
quotedIdentifier String Quoted identifier.

UnquoteParameter

Unquote a parameter

Signature:
public String UnquoteParameter(quotedParameter)
Parameters
Name Type Summary
quotedParameter String Quoted parameter.