Trying to select value from a empty records:
var id = (from transactions in testTransactions.Transactions
orderby transactions.TransID descending select transactions.TransID).First();
How can I give a default value then the table is empty.
Thnak you.
You can try this using first or default if the item is not there at all it would give null