Provides a SQL server implementation for DataAccessCore
| Name | Description |
---|
 | GetConnectionContext() | |
 | PrepCommand(System.Data.IDbCommand) | |
 | TransientErrorNumbers() | |
 | IsTransientError(System.Data.Common.DbException) | |
 | GetDataAdapter(System.Data.IDbCommand) | |
 | CreateStoredProcedureCommand(System.String) | |
⚠ | CreateBlankStoredProcedureCommand(System.String) | Use CreateStoredProcedureCommand |
⚠ | GetStoredProcedureReturnValue(System.Data.SqlClient.SqlCommand) | Replaced with the sqlcmd.WithReturnParameter |
 | CreateTextCommand(System.String) | |
 | CreateTextCommand(System.String, System.String) | |
 | CreateTableSelectCommand(System.String, System.String) | |
 | CreateTableSelectCommand(System.String, System.String, System.String) | |
⚠ | AddInputParamCommand(System.Data.SqlClient.SqlCommand, System.String, System.Object, System.Data.DbType, System.Int32) | Please use the ToSqlParameter Extension Methods |
⚠ | AddInputParamCommand(System.Data.SqlClient.SqlCommand, System.String, System.Object, System.Data.SqlDbType, System.Int32) | Please use the ToSqlParameter Extension Method |
⚠ | AddInputParamCommandAsByte(System.Data.SqlClient.SqlCommand, System.String, System.Nullable{System.Byte}) | Please use the ToSqlParameter Extension Method
To be removed
|
 | AddOutputParamCommand(System.Data.SqlClient.SqlCommand, System.String, System.Data.DbType, System.Int32) | |
 | AddOutputParamCommand(System.Data.SqlClient.SqlCommand, System.String, System.Data.SqlDbType, System.Int32) | |
 | AddAdapterInputParamCommand(System.Data.SqlClient.SqlCommand, System.String, System.String, System.Data.DataTable) | |
 | AddAdapterInputParamCommand(System.Data.SqlClient.SqlCommand, System.String, System.Data.DataTable) | |
 | GetDBType(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);
|
 | CreateBulkInsertAdapter(System.String, System.Int32) | |
 | CementExpressionsAsValues(System.Data.DataTable) | |
 | ExecuteBulkInsertAdapter(System.Data.SqlClient.SqlDataAdapter, System.Data.DataTable) | |
 | ExecuteDataTable(System.Data.SqlClient.SqlCommand, CA.Blocks.DataAccess.Model.Paging.PagingRequest) | |
 | WrapPagingQuery(System.String, System.String) | |