Skip to content

Commit

Permalink
fix: making sure that the delete method exists so that we can delete …
Browse files Browse the repository at this point in the history
…old reocrds when updating
  • Loading branch information
SamRobinson75684 committed Jan 8, 2025
1 parent 45762f7 commit b0dc67c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ public interface IDataServiceClient<TEntity>
/// </summary>
/// <param name="predicate">linq query defining the filter on the table</param>
/// <returns>Returns a task with the result type of TEntity</returns>
Task<TEntity> GetSingleByFilter(Expression<Func<TEntity,bool>> predicate);
Task<TEntity> GetSingleByFilter(Expression<Func<TEntity, bool>> predicate);
/// <summary>
/// Get a list of items where they meet the given predicate
/// </summary>
/// <param name="predicate">linq query defining the filter on the table</param>
/// <returns>Returns a task with the result type of IEnumerable<TEntity></returns>
Task<IEnumerable<TEntity>> GetByFilter(Expression<Func<TEntity,bool>> predicate);
Task<IEnumerable<TEntity>> GetByFilter(Expression<Func<TEntity, bool>> predicate);
/// <summary>
/// Adds a given records to the database
/// </summary>
Expand All @@ -40,4 +40,6 @@ public interface IDataServiceClient<TEntity>
/// <returns>a boolean representing if the record was inserted successfully</returns>
Task<bool> AddRange(IEnumerable<TEntity> entities);

Task<bool> Delete(string id);

}

0 comments on commit b0dc67c

Please sign in to comment.