예제 #1
0
 /// <summary>
 /// Inserts the specified row in the database asynchronously.
 /// </summary>
 /// <typeparam name="T">The type of the row object.</typeparam>
 /// <param name="row">The row to insert.</param>
 /// <param name="identityInsert">If true, then the explicit value can be inserted into the identity column of a table.</param>
 /// <param name="onCompleted">A delegate method that is called when the asynchronous operation completes.</param>
 /// <returns>The object of the asynchronous operation.</returns>
 public Async <Result <T> > InsertGoAsync <T>(T row, bool identityInsert = false, Action <Result <T> > onCompleted = null)
     where T : DbRow
 {
     return(PublicInvoker.Call <Async <Result <T> > >(Assembly.GetCallingAssembly(), (ca) =>
                                                      Crud.InsertGoAsync <T>(ca, row, identityInsert, this, onCompleted)));
 }