Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to find out the total number of records in a table using linq..that is table name businessifo and database is vascape..i am using ntier architecture where(in which layer) i can write the query please solve my problem..


thank u in adv...
Posted
Comments
R. Giskard Reventlov 25-Jul-11 7:22am    
What have you tried to do to work this out for yourself? In any case, there is a school of thought which believes you should use a stored procedure to do database work.

If you're talking about a DataTable, you don't need LINQ. Just retrieve the Table.Rows.Count property.
 
Share this answer
 
For any collection you can use the Count() method in LINQ. That should give you the count.
See here[^] for some basics.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900