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.
Name | Description | |
---|---|---|
DataAccessCore(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, it will use config.Resolver to resolve the connectionStringKey to a valid connection string |
Name | Description | |
---|---|---|
WrapUp(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. | |
TraceDbStatement(System.Data.IDbCommand) | ||
TraceDbError(System.Data.IDbCommand, System.Data.Common.DbException) | ||
TraceGenralError(System.Data.IDbCommand, System.Exception) | ||
GetDataAdapter(System.Data.IDbCommand) | ||
PrepCommand(System.Data.IDbCommand) | The Prep Command is abstract method that must be implemented by the providers. The method will create the the provider specific connection setting the connection string, Opening the connection, set any context on the connection the assign the connection to the command for execution, it will also and indicate to the blocks if the connection should be closed on complete execution. In most cases it is best to close the connection, at the provider will managed the connection pool. | |
IsTransientError(System.Data.Common.DbException) | ||
ExecuteNonQuery(System.Data.IDbCommand) | Will execute a value sql query that does not return any results back to the client. This is typically Data modification statements such as insert , update or delete or catalog operations such as creating tables, indexes etc | |
ExecuteDataSet(System.Data.IDbCommand) | Executes the command into a new Dataset | |
ExecuteDataSet(System.Data.IDbCommand, System.Data.DataSet, System.String) | ||
ExecuteDataTable(System.Data.IDbCommand) | ||
ExecuteDataRow(System.Data.IDbCommand) | ||
ExecuteScalar(System.Data.IDbCommand) | ||
ExecuteScalarAs(System.Data.IDbCommand) | ||
ExecuteScalarWithConvertAs(System.Data.IDbCommand) | ||
ExecuteScalarAsString(System.Data.IDbCommand, System.String) | This will execute the cmd to a ScalarValue and convert the ScalarValue to string value, There is a overload top control the value of the null passed back. | |
⚠ | ExecuteScalarAsInt(System.Data.IDbCommand, System.Int32) | Use ExecuteScalarAs |
⚠ | ExecuteScalarAsShort(System.Data.IDbCommand, System.Int16) | Use ExecuteScalarAs |
⚠ | ExecuteScalarAsByte(System.Data.IDbCommand, System.Byte) | Use ExecuteScalarAs |
⚠ | ExecuteScalarAsLong(System.Data.IDbCommand, System.Int64) | Use ExecuteScalarAs |
⚠ | ExecuteScalarAsGuid(System.Data.IDbCommand, System.Guid) | Use ExecuteScalarAs |
⚠ | ExecuteScalarAsGuid(System.Data.IDbCommand) | Use ExecuteScalarAs |
ExecuteReader(System.Data.IDbCommand) | ||
ExecuteObject(System.Data.IDbCommand) | ||
ExecuteObjectList(System.Data.IDbCommand) | ||
ExecuteTo(System.Data.IDbCommand) | ||
ExecuteToListOf(System.Data.IDbCommand) | ||
TranslateToListOf(System.Data.DataTable) |
Get | Set | Name | Description | |
---|---|---|---|---|
ConnectionString | System.String |