I wanna get the next automatically incrementing primary key, ...Here... I understood to use T-SQL for doing that.
So I wrote the following method :...public int GetLastNewsID()
{
const string command = @"SELECT IDENT_CURRENT ('{0}') AS Current_Identi...