Commit 1f76dbab authored by Marc Gravell's avatar Marc Gravell

.Result, not .Wait()

parent 94a4fd05
...@@ -19,8 +19,8 @@ public void Main() ...@@ -19,8 +19,8 @@ public void Main()
var methods = typeof(Dapper.SqlMapper).GetMethods().Where(x => x.Name == "QueryAsync").ToList(); var methods = typeof(Dapper.SqlMapper).GetMethods().Where(x => x.Name == "QueryAsync").ToList();
//row = conn.QueryAsync<Foo>("select @a as X", new { a = 123 }).Wait().Single(); row = conn.QueryAsync<Foo>("select @a as X", new { a = 123 }).Result.Single();
//Console.WriteLine(row.X); Console.WriteLine(row.X);
} }
} }
private static async Task<int> WithDelay(int i) private static async Task<int> WithDelay(int i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment