LINQ到存储过程 [英] LINQ to Stored Procedure

查看:71
本文介绍了LINQ到存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个LINQ to SP(存储过程).该SP实际上返回多于一行.但是在LINQ中,该方法返回整数值(我需要行列表).我在SP中使用了动态查询.解决此问题的方法是什么?

I have a LINQ to SP(Stored procedure). That SP actually returns more than one rows. But in LINQ the method returns integer value (I need the list of rows). I used dynamic queries inside the SP. What is the solution to this problem ?

推荐答案

恐怕看不到您的LINQ或存储过程,恐怕不会得到太多帮助.您需要提供这些信息,以便人们有机会诊断问题.

这样想吧;您不会去找当地的机械师,并希望他能够仅通过解决问题就能诊断出您的汽车故障.
Without seeing either your LINQ or your Stored Procedure, you aren''t going to get much help I''m afraid. You need to supply these so that people stand a fighting chance of diagnosing the issue.

Think of it this way; you wouldn''t go to your local mechanic and expect him to be able diagnose a fault with your car just by miming the problem.


这篇关于LINQ到存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆