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

C# Question: LINQ Select statement all records ....

$
0
0
I have a LINQ SELECT statement Question:
I need to Select from TableA with 2 where clauses,
Order by and get the count of Number of records returned.

Goal: one statement that select 2 fields from the
record with a count of how many records selected

var data = ( from x in dB.TableA.....

Results
Data.Count
Data.Id
Data.DueDate

Is it possible to make one call to the database and
get fields with row count?

Thanks for sharing your expertise

Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>