User-250884976 posted
Hi, I have written a stored procedure like this -
Select *,TotalRows = COUNT(*) OVER() from MyTable where ....
now, I get TotalRows in SSMS, so to access the TotalRows i have updated my Modal class with
Class MyClass{
[NotMapped]
public int TotalRows{get;set;}
}
and i get the TotalRows as 0 from the database please explain me how can i read Totalrows in my API from Database, thank you.