从ADO.NET实体模型中获取数据 [英] Fetching data from ADO.NET Entity Model

查看:112
本文介绍了从ADO.NET实体模型中获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用ADO.NET实体模型,我需要从一个SP中存在的两个以上的存储过程中获取数据(我正在执行多个SP)

我的SP有点像这样



Hi,
I am using ADO.NET Entity Model,I need to fetch data from more than 2 store procedures present in the one SP (i am executing more than one SP in this)
My SP somewhat looks like this

create PROCEDURE [dbo].[SP_ReadAllData]  
   @Id int
AS  
BEGIN  


IF(@Id is not null)
BEGIN

	exec SP1 @Id
	exec SP2 @Id
	exec SP3 @Id

END
ELSE
return 1
END



请帮我这个



提前谢谢


Please help me in this

Thank you in advance

推荐答案

快速谷歌节目这些 [ ^ ]



这是我从搜索中看到的关于这个主题的最佳文章。



实体框架中的存储过程 [ ^ ]



此处代码项目还有



实体框架使用存储过程的CRUD操作 [ ^ ]
A quick google shows these[^]

this was the best article on the subject that I could see from the search.

Stored Procedures in the Entity Framework[^]

Also here on Code project there is

Entity Framework CRUD Operations Using Stored Procedures[^]


这篇关于从ADO.NET实体模型中获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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