У меня есть SQL-запрос (хранимая процедура) и сгенерированный метод в dataContext.
В моей хранимой процедуре я выбираю 4 строки, но в ReturnValue
у меня есть "0".
(4 row(s) returned)
@RETURN_VALUE = 0
Могу ли я вернуть строки?: (
В репозитории:
public IEnumerable<Index_RandomTale> GetRandomTalesForIndex()
{
return _dataContext.Index_GetRandomTales().ReturnValue as IEnumerable<Index_RandomTale>;
}
В моем контроллере:
IEnumerable<Index_RandomTale> tales = _dataManager.commonRepository.GetRandomTalesForIndex();