【发布时间】:2010-11-28 15:55:50
【问题描述】:
我有一个总是返回单行的存储过程
目前我的代码看起来像这样
public void DoSomthing()
{
ObjectResult<pDoesProductExist_Result> pDoesProductExistResults = tbsDBEntities.pDoesProductExist(itemCode);
foreach (pDoesProductExist_Result pDoesProductExistResult in pDoesProductExistResults)
{
return;
}
...
}
有更好的方法吗?
【问题讨论】:
标签: c# .net asp.net entity-framework entity-framework-4