存储过程调用
来源:互联网 发布:喷水织机配件淘宝网 编辑:程序博客网 时间:2024/06/15 18:25
public static DataTable GetAllProductsInCategory(string categoryId)
{
// get a configured DbCommand object
DbCommand comm = GenericDataAccess.CreateCommand();
// set the stored procedure name
comm.CommandText = "GetAllProductsInCategory";
// create a new parameter
DbParameter param = comm.CreateParameter();
param.ParameterName = "@CategoryID";
param.Value = categoryId;
param.DbType = DbType.Int32;
comm.Parameters.Add(param);
// execute the stored procedure and save the results in a DataTable
DataTable table = GenericDataAccess.ExecuteSelectCommand(comm);
return table;
}
{
// get a configured DbCommand object
DbCommand comm = GenericDataAccess.CreateCommand();
// set the stored procedure name
comm.CommandText = "GetAllProductsInCategory";
// create a new parameter
DbParameter param = comm.CreateParameter();
param.ParameterName = "@CategoryID";
param.Value = categoryId;
param.DbType = DbType.Int32;
comm.Parameters.Add(param);
// execute the stored procedure and save the results in a DataTable
DataTable table = GenericDataAccess.ExecuteSelectCommand(comm);
return table;
}
- 存储过程调用存储过程
- Ibatis调用存储过程调用存储过程
- Java调用存储过程
- 存储过程调用
- asp调用存储过程!
- Asp调用存储过程
- Java 调用存储过程
- Java 调用存储过程
- asp调用存储过程
- JAVA调用存储过程
- cognos调用存储过程
- asp调用存储过程
- 存储过程调用com
- asp调用存储过程
- ASP调用存储过程
- asp调用存储过程
- WebServices调用存储过程
- WebServices调用存储过程
- 自叙
- 串口收发数据
- 从今开始做个网络人!
- linux程序开发基础
- FCKeditor_2.6.2.zip和fckeditor-java-core-2.4.jar的使用
- 存储过程调用
- C#异常处理
- 扩展Eclipse视图弹出菜单
- YouTube:
- 子窗口及其相关
- YouTube:欲与Google试比高
- webmin系统安装
- 使用window.open向新页面传参
- 那一夜,温柔缠绵后我祝她幸福