CA.Blocks.DataAccess.DataAccessCore

Class DataAccessCore Class

Namespace :CA.Blocks.DataAccess

Assembly : CA.Blocks.DataAccess.dll

This class provides the abstract implementation for the Code Associate Data Access Block. The Abstract implementation is build upon utilizing common System.Data methods and interfacing out the Specific DBCommand using the IDbCommand interface. In doing this all specializations built on top of this class will behave in the same manor. This class is abstract and cannot be created.

Inheritance :




New Class Constructors

NameDescription
Protected MethodDataAccessCore(CA.Blocks.DataAccess.DI.IDataAccessConfig,CA.Blocks.DataAccess.Translator.DbRowToObject.Interfaces.IDbRowTranslatorProvider) This is a protected constructor which must be called by the inheriting class, bu default it will get the configuration value stored in connectionStrings element of the configuration. This value can be overriden using the ResolveConnectionStringValue method.

Method Methods

NameDescription
Protected MethodWrapUp(System.Data.IDbConnection,System.Boolean)

The WrapUp procedure is called when completing a database call. It will establish whether or not to close the connection pending the variable closeConnection which would have been passed back from the PrepCommand. The PrepCommand and WrapUp work in tandem when executing commands though this common class.

Abstract MethodTraceDbStatement(System.Data.IDbCommand)
Abstract MethodGetDataAdapter(System.Data.IDbCommand)
Abstract MethodPrepCommand(System.Data.IDbCommand)
Protected MethodExecuteNonQuery(System.Data.IDbCommand)
Protected MethodExecuteDataSet(System.Data.IDbCommand)
Protected MethodExecuteDataSet(System.Data.IDbCommand,System.Data.DataSet,System.String)
Protected MethodExecuteDataTable(System.Data.IDbCommand)
Protected MethodExecuteDataRow(System.Data.IDbCommand)
Protected MethodExecuteDictionary(System.Data.IDbCommand)
Protected MethodExecuteScalar(System.Data.IDbCommand)
Protected MethodExecuteScalarAsString(System.Data.IDbCommand,System.String)
Protected MethodExecuteScalarAsInt(System.Data.IDbCommand,System.Int32)
Protected MethodExecuteScalarAsShort(System.Data.IDbCommand,System.Int16)
Protected MethodExecuteScalarAsByte(System.Data.IDbCommand,System.Byte)
Protected MethodExecuteScalarAsLong(System.Data.IDbCommand,System.Int64)
Protected MethodExecuteScalarAsGuid(System.Data.IDbCommand,System.Guid)
Protected MethodExecuteScalarAsGuid(System.Data.IDbCommand)
Protected MethodExecuteReader(System.Data.IDbCommand)
Protected MethodExecuteObject(System.Data.IDbCommand)
Protected MethodExecuteObjectList(System.Data.IDbCommand)
Protected MethodExecuteTo(System.Data.IDbCommand)
Protected MethodExecuteToListOf(System.Data.IDbCommand)

Property Properties

GetSetNameDescription
Protected PropertyConnectionStringSystem.String