I​Query​Sql​Generator I​Query​Sql​Generator Interface

Definition

A relational SQL generator.

public interface IQuerySqlGeneratorPublic Interface IQuerySqlGenerator

Properties

IsCacheable IsCacheable

Gets a value indicating whether the generated SQL is cacheable.

bool IsCacheable { get; }ReadOnly Property IsCacheable As Boolean
Value
System.Boolean System.Boolean

true if the generated SQL is cacheable, false if not.

Methods

CreateValueBufferFactory(IRelationalValueBufferFactoryFactory, DbDataReader) CreateValueBufferFactory(IRelationalValueBufferFactoryFactory, DbDataReader)

Creates value buffer factory corresponding to the generated query.

IRelationalValueBufferFactory CreateValueBufferFactory(IRelationalValueBufferFactoryFactory relationalValueBufferFactoryFactory, DbDataReader dataReader)Function CreateValueBufferFactory(relationalValueBufferFactoryFactory As IRelationalValueBufferFactoryFactory, dataReader As DbDataReader) As IRelationalValueBufferFactory
Parameters
relationalValueBufferFactoryFactory
IRelationalValueBufferFactoryFactory IRelationalValueBufferFactoryFactory

The relational value buffer factory.

dataReader
System.Data.Common.DbDataReader System.Data.Common.DbDataReader

The data reader.

Returns

GenerateSql(IReadOnlyDictionary<String, Object>) GenerateSql(IReadOnlyDictionary(Of String, Object))

Generates SQL for the given parameter values.

IRelationalCommand GenerateSql(IReadOnlyDictionary<string, object> parameterValues)Function GenerateSql(parameterValues As IReadOnlyDictionary(Of String, Object)) As IRelationalCommand
Parameters
parameterValues
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> System.Collections.Generic.IReadOnlyDictionary(Of System.String, System.Object)

The parameter values.

Returns