How can I return an int value from a SQLite query? How can I return an int value from a SQLite query? sqlite sqlite

How can I return an int value from a SQLite query?


from their documentation, you can use this code:

latCount = db.ExecuteScalar<int>(sql); 

since it will return a row other than a list. I don't know why you are getting that error but your query will run on SQLFiddle.