CA.Blocks.SQLServerDataAccess.SqlServerDataAccess

Class SqlServerDataAccess Class

Namespace :CA.Blocks.SQLServerDataAccess

Assembly : CA.Blocks.SQLServerDataAccess.dll

Provides a SQL server implementation for DataAccessCore

Inheritance :



CA.Blocks.DataAccess.DataAccessCore


New Class Constructors

NameDescription
MethodSqlServerDataAccess(CA.Blocks.DataAccess.DI.IDataAccessConfig,CA.Blocks.DataAccess.Translator.DbRowToObject.Interfaces.IDbRowTranslatorProvider)

Method Methods

NameDescription
Abstract MethodGetConnectionContext()
Abstract MethodPrepCommand(System.Data.IDbCommand)
Abstract MethodGetDataAdapter(System.Data.IDbCommand)
Protected MethodCreateBlankStoredProcedureCommand(System.String,System.Boolean)
Protected MethodGetStoredProcedureReturnValue(System.Data.SqlClient.SqlCommand)
Protected MethodCreateTextCommand(System.String)
Protected MethodCreateTextCommand(System.String,System.String)
Protected MethodCreateTableSelectCommand(System.String,System.String)
Protected MethodCreateTableSelectCommand(System.String,System.String,System.String)
Protected MethodAddInputParamCommand(System.Data.SqlClient.SqlCommand,System.String,System.Object,System.Data.DbType,System.Int32)
Protected MethodAddInputParamCommand(System.Data.SqlClient.SqlCommand,System.String,System.Object,System.Data.SqlDbType,System.Int32)
Protected MethodAddInputParamCommandAsByte(System.Data.SqlClient.SqlCommand,System.String,System.Nullable{System.Byte})

To be removed

Protected MethodAddOutputParamCommand(System.Data.SqlClient.SqlCommand,System.String,System.Data.DbType,System.Int32)
Protected MethodAddOutputParamCommand(System.Data.SqlClient.SqlCommand,System.String,System.Data.SqlDbType,System.Int32)
Protected MethodAddAdapterInputParamCommand(System.Data.SqlClient.SqlCommand,System.String,System.String,System.Data.DataTable)
Protected MethodAddAdapterInputParamCommand(System.Data.SqlClient.SqlCommand,System.String,System.Data.DataTable)
Protected MethodGetDBType(System.Type)

This is usefull when you dont know the sql datatype but you do know the physical type example is datatable DataColumn dc = ?? AddInputParamCommand(cmd, dc.ColumnName, dr[dc], GetDBType(dc.DataType), dc.MaxLength);

Protected MethodCreateBulkInsertAdapter(System.String,System.Int32)
Protected MethodCementExpressionsAsValues(System.Data.DataTable)
Protected MethodExecuteBulkInsertAdapter(System.Data.SqlClient.SqlDataAdapter,System.Data.DataTable)
Protected MethodExecuteDataTable(System.Data.SqlClient.SqlCommand,CA.Blocks.DataAccess.Model.Paging.PagingRequest)
Protected MethodWrapPagingQuery(System.String,System.String)