Code: Select all
var results = (from U in DataContext.USERs select U.USER_ID).Min();
This code works:
Code: Select all
var results = (from U in DataContext.USERs select U.USER_ID).Min(x => x);
Why does the aggregate function require the lambda function parameter? Both ways work OK under MS SQL Server and their LINQ driver.