我在网上找到了这个SQLHelper,我想用它来运行一个SQL查询。但是助手需要一个列表而不是一个字符串。我似乎想不出如何使executeNonQuery工作。type SqlHelper (connection) = use conn = new SqlConnectionwhile read.Read() do le
READONLYBEGIN select * from @Topic我想从项目中传递一个Topic对象,并通过SqlHelperconstr = ConfigurationManager.ConnectionStrings["testConnection"].ConnectionString;
int rowsAffected = SqlHelper.ExecuteNonQuery(constr, "addTopic", new
我正在创建一个简单的SqlHelper,这将简化ADO.NET方法的使用。有谁能帮我复习一下这门课,看看有没有问题或遗漏了什么?public static class SqlHelper public static async Task<int> ExecuteNonQueryAsync(string connectionString