Show / Hide Table of Contents

Class SqlSelectCommandBuilder

Provides an implementation for sql select command builder objects.

Inheritance
System.Object
CommandBuilderBase
SqlSelectCommandBuilder
Implements
ISelectCommandBuilder
ICommandBuilder
IDisposable
Inherited Members
CommandBuilderBase.Connector
CommandBuilderBase.FormatProvider
CommandBuilderBase.Descriptor
CommandBuilderBase.Command
CommandBuilderBase.Dispose()
CommandBuilderBase.GetTableName()
CommandBuilderBase.GetPropertyNames()
Paradigm.ORM.Data.CommandBuilders.CommandBuilderBase.GetPropertyNames(IEnumerable<>)
Paradigm.ORM.Data.CommandBuilders.CommandBuilderBase.GetDbParameterNames(IEnumerable<>, System.String)
Paradigm.ORM.Data.CommandBuilders.CommandBuilderBase.GetDbParameterNamesAndValues(IEnumerable<>, System.String)
CommandBuilderBase.PopulateParameters()
Paradigm.ORM.Data.CommandBuilders.CommandBuilderBase.PopulateParameters(IEnumerable<>)
Namespace: Paradigm.ORM.Data.SqlServer.CommandBuilders
Assembly: Paradigm.ORM.Data.SqlServer.dll
Syntax
public class SqlSelectCommandBuilder : CommandBuilderBase, ISelectCommandBuilder, ICommandBuilder, IDisposable

Constructors

| Improve this Doc View Source

SqlSelectCommandBuilder(IDatabaseConnector, ITableDescriptor)

Initializes a new instance of the SqlSelectCommandBuilder class.

Declaration
public SqlSelectCommandBuilder(IDatabaseConnector connector, ITableDescriptor descriptor)
Parameters
Type Name Description
IDatabaseConnector connector

A database connector.

ITableDescriptor descriptor

A table type descriptor.

Methods

| Improve this Doc View Source

GetCommand(String, Object[])

Gets the select command ready to execute the select query.

Declaration
public IDatabaseCommand GetCommand(string whereClause = null, params object[] parameters)
Parameters
Type Name Description
System.String whereClause

An optional where clause to add to the query. If the where contains parameters, they need to be named as @1 @2 @3 etc.

System.Object[] parameters

A list of parameter values.

Returns
Type Description
IDatabaseCommand

A select command already parametrized to execute.

Implements

ISelectCommandBuilder
ICommandBuilder
IDisposable

Extension Methods

ObjectExtensions.ThrowIfFails<TException>(Object, Action, String)
ObjectExtensions.ThrowIfFails<TException, TResult>(Object, Func<TResult>, String)
ObjectExtensions.ThrowIfFailsAsync<TException>(Object, Func<Task>, String)
ObjectExtensions.ThrowIfFailsAsync<TException, TResult>(Object, Func<Task<TResult>>, String)

See Also

CommandBuilderBase
ISelectCommandBuilder
  • Improve this Doc
  • View Source
Powered by MiracleDevs ©2017. Code licensed under the MIT License.
Documentation generated by DocFX.