コード例 #1
0
 public static SqlCommand GetCommand()
 {
     return(new SqlCommand
     {
         Connection = SqlConnectionContext.GetOpenSqlConnection(),
         Transaction = SqlConnectionContext.GetTransaction()
     });
 }
コード例 #2
0
 public static SqlCommand GetCommand(string storedProcedureName)
 {
     return(new SqlCommand
     {
         Connection = SqlConnectionContext.GetOpenSqlConnection(),
         Transaction = SqlConnectionContext.GetTransaction(),
         CommandType = CommandType.StoredProcedure,
         CommandText = storedProcedureName
     });
 }