LINQ query has me baffled
How would I write a LINQ query to do the following?
I have a database table with a schema like this:
ID - Int
Time - DateTime
RecordType - Int
Msg - String
I want to get the newest (using 'Time' field) record for each 'RecordType'
Another restriction is that I'm only interested in certain RecordTypes -
those contained in an int array.
The result of the query would be one record per RecordType - the newest
record for this type.
No comments:
Post a Comment