I would like to get nextvalue of sequence in postgresql in my controller.
I wrote a Custom Query, but I need to set it as Id (which is integer type).
How can I do that or I should write custom insert query too?
int count = session.CreateSQLQuery("SELECT nextval('transport_id_seq')");