如果我在我的程序集中实现这样的方法会被认为是危险的吗?
public void Execute(string sql)
{
using (SqlConnection connection = new SqlConnection("MyConnectionString....."))
{
SqlCommand command = new SqlCommand(sql, connection);
connection.Open();
command.ExecuteNonQuery();
}
}