private int ss(IDbHelp thelp, object obj) { IDataParameter[] dp = { DbHelp.Def.AddParam("@aaa", "121111111111") }; thelp.Update("insert into cs1(CsName) values(@aaa)", dp); IDataParameter[] dp1 = { DbHelp.Def.AddParam("@aaa1", "45555555555555555") }; thelp.Update("insert into cs1(CsName) values(@aaa1)", dp1); //TransHelp th=(TransHelp)thelp; //foreach (IDataParameter d in th.cmd.Parameters) //{ // Response.Write(d.ParameterName+"<br>"); //} DataTable dt = thelp.GetDataTable("select * from cs1"); foreach (DataRow drw in dt.Rows) { Response.Write(drw["csname"] + "<br>"); } return(1); }
public SqlDataSelect(IDbHelpParam param, IDbHelp thelp) { this.dtInfo = thelp.GetDataTable(param); }