SyntaxFix
Write A Post
Hire A Developer
Questions
To work with NpgsqlCommand or the standard sqlCommand use:
int result = int.Parse(cmd.ExecuteScalar().ToString());