c# - ADO.NET DataService record count -


I have stored some records in the database using ADO.NET Entity Framework. I want to know the total record count in a particular table using the ADO.NET Entity Framework in the CD # Net.
I have given some examples, but this is not working.

  EX: DataServiceQuery & lt; BunHistory & gt; Query = context.BunHistory In Tailcount (); QueryOperationResponse & LT; BunHistory & gt; Response Q & A (QueryOperationResponse & lt; BunHistory & gt; Long Count = Response Total Number;  

When I run this code, I get a few exceptions "While processing this request one An error occurred. "

  int count = context.table. Edit: 

It is becoming obvious that you are actually doing an ADO.Net DataService query. While backend can be EF, Counting

The code you added looks correct. I am assuming that the problem is not in the syntax.

At what point do you get an error? < / P>

Also: See


Comments