C# Class DbExpressions.DbQueryTranslator

Provides a base class for database-specific implementations.
Inheritance: DbExpressionVisitor
Mostra file Open project: seesharper/DbExpressions Class Usage Examples

Public Methods

Method Description
Translate ( DbExpression dbExpression ) : DbTranslateResult

Translates the dbExpression into a DbTranslateResult instance.

Protected Methods

Method Description
CreateParameter ( string name, object value ) : void

Creates a new IDataParameter used in the result of the query translation.

DbQueryTranslator ( System.Data.Common.DbProviderFactory providerFactory ) : System.Collections.Generic

Initializes a new instance of the DbQueryTranslator class.

QuoteIdentifier ( string unquotedIdentifier ) : string

Quotes the unquotedIdentifier.

Method Details

CreateParameter() protected method

Creates a new IDataParameter used in the result of the query translation.
protected CreateParameter ( string name, object value ) : void
name string The name of the parameter.
value object The parameter value.
return void

DbQueryTranslator() protected method

Initializes a new instance of the DbQueryTranslator class.
protected DbQueryTranslator ( System.Data.Common.DbProviderFactory providerFactory ) : System.Collections.Generic
providerFactory System.Data.Common.DbProviderFactory
return System.Collections.Generic

QuoteIdentifier() protected method

Quotes the unquotedIdentifier.
protected QuoteIdentifier ( string unquotedIdentifier ) : string
unquotedIdentifier string The original unquoted identifier.
return string

Translate() public method

Translates the dbExpression into a DbTranslateResult instance.
public Translate ( DbExpression dbExpression ) : DbTranslateResult
dbExpression DbExpression The to translate.
return DbTranslateResult