public static Task DeleteAsync <TKey, TEntity>(this IDeleteStore <TKey, TEntity> deleteStore, IStorageDbConnection conn, Expression <Func <TEntity, object> > id, TKey value, IDbTransaction tr)
     where TKey : IEquatable <TKey>
     where TEntity : class, IEntity <TKey>
 {
     if (deleteStore == null)
     {
         throw new ArgumentNullException(nameof(deleteStore));
     }
     return(deleteStore.DeleteAsync(conn, id, value, tr, default(CancellationToken)));
 }
Example #2
0
 public static Task DeleteAsync <TKey, TEntity>(this IDeleteStore <TKey, TEntity> deleteStore, IStorageDbConnection conn, WhereClauseResult whereClause, IDbTransaction tr)
     where TKey : IEquatable <TKey>
     where TEntity : class, IEntity <TKey>
 {
     if (deleteStore == null)
     {
         throw new ArgumentNullException(nameof(deleteStore));
     }
     return(deleteStore.DeleteAsync(conn, whereClause, tr, default(CancellationToken)));
 }
 public static Task DeleteAsync <TKey, TEntity>(this IDeleteStore <TKey, TEntity> deleteStore, IStorageDbConnection conn, TKey value, IDbTransaction tr, CancellationToken cancellationToken)
     where TKey : IEquatable <TKey>
     where TEntity : class, IEntity <TKey>
 {
     if (deleteStore == null)
     {
         throw new ArgumentNullException(nameof(deleteStore));
     }
     return(deleteStore.DeleteAsync(conn, _ => _.Id, value, tr, cancellationToken));
 }