示例#1
0
 /// <summary>
 /// Asynchronously executes read actions inside read transaction
 /// </summary>
 /// <param name="db">Database instance to read from</param>
 /// <param name="reads">Read operations to perform</param>
 /// <returns>Awaitable Task of read operations</returns>
 public static Task BulkReadAsync(this DbInstance db, Action reads)
 {
     return(TaskEx.Run(() => db.BulkRead(reads)));
 }