1

I need to select from my table the maximum value with linq.

SQL:

Select MAX(number) AS Maximo FROM my_table 
N. Tobías
  • 55
  • 1
  • 12

1 Answers1

2
YourContext.YourTable.Max(x => x.number)
dovid
  • 6,354
  • 3
  • 33
  • 73