Property | Type | Description | |
---|---|---|---|
ConnectionStringInventoryDistributedTransaction | string | ||
ConnectionStringLocalTransaction | string | ||
ConnectionStringOrderDistributedTransaction | string | ||
ConnectionStringProfile | string |
Method | Description | |
---|---|---|
CacheParameters ( string cacheKey ) : void |
add parameter array to the cache
|
|
ExecuteNonQuery ( |
Execute a SqlCommand (that returns no resultset) against an existing database connection using the provided parameters. e.g.: int result = ExecuteNonQuery(connString, CommandType.StoredProcedure, "PublishOrders", new SqlParameter("@prodid", 24)); |
|
ExecuteNonQuery ( |
Execute a SqlCommand (that returns no resultset) using an existing SQL Transaction using the provided parameters. e.g.: int result = ExecuteNonQuery(connString, CommandType.StoredProcedure, "PublishOrders", new SqlParameter("@prodid", 24)); |
|
ExecuteNonQuery ( string connectionString, CommandType cmdType, string cmdText ) : int |
Execute a SqlCommand (that returns no resultset) against the database specified in the connection string using the provided parameters. e.g.: int result = ExecuteNonQuery(connString, CommandType.StoredProcedure, "PublishOrders", new SqlParameter("@prodid", 24)); |
|
ExecuteReader ( string connectionString, CommandType cmdType, string cmdText ) : System.Data.SqlClient.SqlDataReader |
Execute a SqlCommand that returns a resultset against the database specified in the connection string using the provided parameters. e.g.: SqlDataReader r = ExecuteReader(connString, CommandType.StoredProcedure, "PublishOrders", new SqlParameter("@prodid", 24)); |
|
ExecuteScalar ( |
Execute a SqlCommand that returns the first column of the first record against an existing database connection using the provided parameters. e.g.: Object obj = ExecuteScalar(connString, CommandType.StoredProcedure, "PublishOrders", new SqlParameter("@prodid", 24)); |
|
ExecuteScalar ( string connectionString, CommandType cmdType, string cmdText ) : object |
Execute a SqlCommand that returns the first column of the first record against the database specified in the connection string using the provided parameters. e.g.: Object obj = ExecuteScalar(connString, CommandType.StoredProcedure, "PublishOrders", new SqlParameter("@prodid", 24)); |
|
GetCachedParameters ( string cacheKey ) : System.Data.SqlClient.SqlParameter[] |
Retrieve cached parameters
|
Method | Description | |
---|---|---|
PrepareCommand ( |
Prepare a command for execution
|
public static CacheParameters ( string cacheKey ) : void | ||
cacheKey | string | Key to the parameter cache |
return | void |
public static ExecuteNonQuery ( |
||
connection | ||
cmdType | CommandType | |
cmdText | string | |
return | int |
public static ExecuteNonQuery ( |
||
trans | an existing sql transaction | |
cmdType | CommandType | |
cmdText | string | |
return | int |
public static ExecuteNonQuery ( string connectionString, CommandType cmdType, string cmdText ) : int | ||
connectionString | string | a valid connection string for a SqlConnection |
cmdType | CommandType | |
cmdText | string | |
return | int |
public static ExecuteReader ( string connectionString, CommandType cmdType, string cmdText ) : System.Data.SqlClient.SqlDataReader | ||
connectionString | string | a valid connection string for a SqlConnection |
cmdType | CommandType | |
cmdText | string | |
return | System.Data.SqlClient.SqlDataReader |
public static ExecuteScalar ( |
||
connection | ||
cmdType | CommandType | |
cmdText | string | |
return | object |
public static ExecuteScalar ( string connectionString, CommandType cmdType, string cmdText ) : object | ||
connectionString | string | a valid connection string for a SqlConnection |
cmdType | CommandType | |
cmdText | string | |
return | object |
public static GetCachedParameters ( string cacheKey ) : System.Data.SqlClient.SqlParameter[] | ||
cacheKey | string | key used to lookup parameters |
return | System.Data.SqlClient.SqlParameter[] |
public static string ConnectionStringInventoryDistributedTransaction | ||
return | string |
public static string ConnectionStringLocalTransaction | ||
return | string |
public static string ConnectionStringOrderDistributedTransaction | ||
return | string |