Whenever we add some new record to a Sharepoint list the ID column gets unique number by itself. I want to get that number after adding record. For example, when we add new record in sql server table and if there is some identity column we get its auto generated id column value by @@IDENTITY. I need a similar thing for a Sharepoint list and ID column.
Please provide some reference or code sample. I hope there is some built in feature for doing it as I don't want to query my data after adding to get its id column value. Looking for some efficient way.