|
@@ -24,6 +24,8 @@ namespace XF.Domain.Repository
|
|
Task<TEntity?> GetAsync(TKey id, CancellationToken cancellationToken = default);
|
|
Task<TEntity?> GetAsync(TKey id, CancellationToken cancellationToken = default);
|
|
Task<TEntity?> GetAsync(Expression<Func<TEntity, bool>> predicate, CancellationToken cancellationToken = default);
|
|
Task<TEntity?> GetAsync(Expression<Func<TEntity, bool>> predicate, CancellationToken cancellationToken = default);
|
|
|
|
|
|
|
|
+ Task<TEntity?> GetAsync(Expression<Func<TEntity, bool>> predicate,bool isDesc, Expression<Func<TEntity, object>> orderBy, CancellationToken cancellationToken = default);
|
|
|
|
+
|
|
Task<List<TEntity>> QueryAsync(
|
|
Task<List<TEntity>> QueryAsync(
|
|
Expression<Func<TEntity, bool>>? predicate = null,
|
|
Expression<Func<TEntity, bool>>? predicate = null,
|
|
params (bool isWhere, Expression<Func<TEntity, bool>> expression)[] whereIfs);
|
|
params (bool isWhere, Expression<Func<TEntity, bool>> expression)[] whereIfs);
|