首页 新闻 赞助 找找看

ef访问返回游标的oracle存储过程失败?

0
悬赏园豆:40 [待解决问题]

如果存储过程没有返回游标,就能成功吗,如果返回游标,就是失败,有人知道为什么吗?谢谢
public ObjectResult<T_ID> USP_TEST(global::System.String mTABLE)
        {
            ObjectParameter mTABLEParameter;
            if (mTABLE != null)
            {
                mTABLEParameter = new ObjectParameter("MTABLE", mTABLE);
            }
            else
            {
                mTABLEParameter = new ObjectParameter("MTABLE", typeof(global::System.String));
            }
            //提示这里出错
            return base.ExecuteFunction<T_ID>("USP_TEST", mTABLEParameter);
        }


存储过程 也很简单
create or replace procedure USP_TEST(mTable in varchar2,cur_out Out sys_refcursor
) is 
begin
  open cur_out for select * from t_id;
end USP_TEST;

提示错误:
    PLS-00306: wrong number or types of arguments in call to 'USP_TEST'
是不是ef不支持oracle的存储过程啊
很急哦,谢谢

问题补充:

难道没有人能回答我......

blank250的主页 blank250 | 初学一级 | 园豆:181
提问于:2012-06-15 11:39
< >
分享
所有回答(1)
0

ef支持自家mssql,对其它数据库的支持还不太稳定,可以使用原生ADO.NET或CYQ.Data数据框架

路过秋天 | 园豆:4787 (老鸟四级) | 2012-06-15 13:04

难道是没有办法.......

支持(0) 反对(0) blank250 | 园豆:181 (初学一级) | 2012-06-15 14:09
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册