私は以下のコードを持っています:
using (SqlCommand command = new SqlCommand())
{
command.CommandType = System.Data.CommandType.StoredProcedure;
command.Connection = new SqlConnection();
command.CommandText = "";
command.Parameters.Add(new SqlParameter("@ExperienceLevel", 3).Direction = System.Data.ParameterDirection.Input);
SqlDataReader dataReader = command.ExecuteReader();
}
私が現在宣言している SqlConnection を宣言することで、機能的な影響はありますか?:
using (SqlCommand command = new SqlCommand())
using (SqlConnection connection = new SqlConnection())
ありがとう