.net oracle oracleparameter,.net 操作Oracle 存储过程 OracleParameterCollection 只接受非空的 OracleParameter 类型对象...
C# codeusing Oracle.DataAccess.Client;/// /// Gets some t_points_alm3limitconfigs_new record dynamic for DataSet from the database according to the where and orderby conditions./// /// /// /// public
C# codeusing Oracle.DataAccess.Client;
///
/// Gets some t_points_alm3limitconfigs_new record dynamic for DataSet from the database according to the where and orderby conditions.
///
///
///
///
public DataSet getRecordsDynamicForDS(string whereCondition, string orderByCondition)
{
OracleParameter[] parms = new OracleParameter[3];
if (string.IsNullOrEmpty(whereCondition) == true)
{
whereCondition = string.Empty;
}
if (string.IsNullOrEmpty(orderByCondition) == true)
{
orderByCondition = string.Empty;
}
parms[0] = new OracleParameter("a_WhereCondition", whereCondition);
parms[1] = new OracleParameter("a_OrderByExpression", orderByCondition);
parms[2] = new OracleParameter("c_Result", OracleDbType.RefCursor);
parms[2].Direction = ParameterDirection.Output;
DataSet ds = dal.ExecuteDataSet(CommandType.StoredProcedure, "TPRI.P_PT_ALM3LIMITCONFIG_SW", parms);
return ds;
}
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)