Beispiel #1
0
 /// <summary>
 ///     Executes the provided sql query and returns the number of affected rows.
 /// </summary>
 /// <param name="sql">The sql to execute asynchronously.</param>
 /// <returns>The number of affected rows</returns>
 public static async Task <int> ExecuteSqlAsync(string sql)
 {
     using (var db = new KaguyaDb())
         return(await db.ExecuteAsync(sql));
 }