QuerySqlGeneratorFactoryBase QuerySqlGeneratorFactoryBase Class

Definition

A base class for query SQL generators.

public abstract class QuerySqlGeneratorFactoryBase : IQuerySqlGeneratorFactory
Public MustInherit Class QuerySqlGeneratorFactoryBase
    Implements IQuerySqlGeneratorFactory
Inheritance
System.ObjectSystem.Object
QuerySqlGeneratorFactoryBaseQuerySqlGeneratorFactoryBase
Implements

Constructors

QuerySqlGeneratorFactoryBase(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IParameterNameGeneratorFactory, IRelationalTypeMapper) QuerySqlGeneratorFactoryBase(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IParameterNameGeneratorFactory, IRelationalTypeMapper)

Specialised constructor for use only by derived class.

protected QuerySqlGeneratorFactoryBase(IRelationalCommandBuilderFactory commandBuilderFactory, ISqlGenerationHelper sqlGenerationHelper, IParameterNameGeneratorFactory parameterNameGeneratorFactory, IRelationalTypeMapper relationalTypeMapper)
Protected Sub New(commandBuilderFactory As IRelationalCommandBuilderFactory, sqlGenerationHelper As ISqlGenerationHelper, parameterNameGeneratorFactory As IParameterNameGeneratorFactory, relationalTypeMapper As IRelationalTypeMapper)
Parameters
commandBuilderFactory
IRelationalCommandBuilderFactory IRelationalCommandBuilderFactory

The command builder factory.

sqlGenerationHelper
ISqlGenerationHelper ISqlGenerationHelper

The SQL generation helper.

parameterNameGeneratorFactory
IParameterNameGeneratorFactory IParameterNameGeneratorFactory

The parameter name generator factory.

relationalTypeMapper
IRelationalTypeMapper IRelationalTypeMapper

The relational type mapper.

Properties

CommandBuilderFactory CommandBuilderFactory

Gets the command builder factory.

protected virtual IRelationalCommandBuilderFactory CommandBuilderFactory { get; }
Protected Overridable ReadOnly Property CommandBuilderFactory As IRelationalCommandBuilderFactory

ParameterNameGeneratorFactory ParameterNameGeneratorFactory

Gets the parameter name generator factory.

protected virtual IParameterNameGeneratorFactory ParameterNameGeneratorFactory { get; }
Protected Overridable ReadOnly Property ParameterNameGeneratorFactory As IParameterNameGeneratorFactory
Value
IParameterNameGeneratorFactory IParameterNameGeneratorFactory

The parameter name generator factory.

RelationalTypeMapper RelationalTypeMapper

Gets the relational type mapper.

protected virtual IRelationalTypeMapper RelationalTypeMapper { get; }
Protected Overridable ReadOnly Property RelationalTypeMapper As IRelationalTypeMapper
Value
IRelationalTypeMapper IRelationalTypeMapper

The relational type mapper.

SqlGenerationHelper SqlGenerationHelper

Gets the SQL generation helper.

protected virtual ISqlGenerationHelper SqlGenerationHelper { get; }
Protected Overridable ReadOnly Property SqlGenerationHelper As ISqlGenerationHelper
Value
ISqlGenerationHelper ISqlGenerationHelper

The SQL generation helper.

Methods

CreateDefault(SelectExpression) CreateDefault(SelectExpression)

Creates a default query SQL generator.

public abstract IQuerySqlGenerator CreateDefault(SelectExpression selectExpression)
Public MustOverride Function CreateDefault(selectExpression As SelectExpression) As IQuerySqlGenerator
Parameters
selectExpression
SelectExpression SelectExpression

The select expression.

Returns

The new default query SQL generator.

CreateFromSql(SelectExpression, String, Expression) CreateFromSql(SelectExpression, String, Expression)

Creates a query SQL generator for a FromSql query.

public virtual IQuerySqlGenerator CreateFromSql(SelectExpression selectExpression, string sql, Expression arguments)
Public Overridable Function CreateFromSql(selectExpression As SelectExpression, sql As String, arguments As Expression) As IQuerySqlGenerator
Parameters
selectExpression
SelectExpression SelectExpression

The select expression.

sql
System.String System.String

The SQL.

arguments
System.Linq.Expressions.Expression System.Linq.Expressions.Expression

The arguments.

Returns

The query SQL generator.

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object