Nhibernate Criteria: 'select max(id)...'

Posted by AWC on Stack Overflow See other posts from Stack Overflow or by AWC
Published on 2009-08-14T14:43:47Z Indexed on 2010/06/09 12:12 UTC
Read the original article Hit count: 837

Filed under:
|
|

Can I use a Criteria to execute a t-sql command to select the max value for a column in a table?

'select @cus_id = max(id) + 1 from customers'

Ta

Ollie

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about tsql