Dapper.NET Using Async Calling a Stored Procedure

30% OFF - 9th Anniversary discount on Dapper Plus until December 15 with code: ZZZANNIVERSARY9

Example

public async Task<Product> GetProductAsync(string productId)
{
    using (_db)
    {
        return await _db.QueryFirstOrDefaultAsync<Product>("usp_GetProduct", new { id = productId },
            commandType: CommandType.StoredProcedure);
    }
}


Got any Dapper.NET Question?