Return a varchar from database using dapper : <p>I need to retrieve a single word/varchar from the database ( it can be an empty string or a null value sometimes ).
I'm using dapper and I can't retrieve anything at all. The many tutorials and questions on the Web refer only to retrieve an <strong>Integer</strong> value, but never a <strong>String</strong>.</p>

<p>This is what I got so far:</p>

<pre><code> using (var db = new FbConnection(csb.ToString()))
                {
                    await db.OpenAsync();
                    result = db.ExecuteScalarAsync&lt;string&gt;("SELECT NOME from NACION WHERE NOME = @nacion", new { nacion }).ToString();
                    db.Close();
                }
</code></pre>

<p>That <code>result</code> variable should be a string, like <strong>"Word"</strong> or an empty/null string, depending on the result of the query.</p>

<p>Right now, it's returning something weird like this: <code>System.Threading.Tasks.Task'1[System.String]</code></p>

<p>What am I doing wrong? </p>
