У меня есть хранимая процедура, которая всегда возвращает одну строку
В настоящее время мой код выглядит примерно так
public void DoSomthing()
{
ObjectResult<pDoesProductExist_Result> pDoesProductExistResults = tbsDBEntities.pDoesProductExist(itemCode);
foreach (pDoesProductExist_Result pDoesProductExistResult in pDoesProductExistResults)
{
return;
}
...
}
Есть ли лучший способ сделать это?