Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Read Data from Sql

$
0
0

Hi, I have written a stored procedure like this  - 

Select*,TotalRows= COUNT(*) OVER()fromMyTablewhere....

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. 


Viewing all articles
Browse latest Browse all 1698

Trending Articles