Я ищу лучший/самый быстрый способ вернуть данные в браузер пользователя. страница — либо с помощью запроса C#, подобного этому...
Код: Выделить всё
// Filter query for the customer.
IEnumerable getQuery =
from recs in _dbContext.Table1()
where (recs.UID_CUSTOMER == pUID_CUSTOMER)
select recs;
// Fetch the data
return getQuery.ToList();
Код: Выделить всё
int customerUID = 7;
FormattableString uspCommand = $"EXEC {storedProcName} @CustomerUID = {customerUID}";
returnValue = _dbContext.Table1.FromSqlInterpolated(sqlCommand).ToList();
Подробнее здесь: https://stackoverflow.com/questions/788 ... cords-from