PoweredSoft.ObjectStorage.Core by David Lebee

<PackageReference Include="PoweredSoft.ObjectStorage.Core" Version="1.1.2" />

 IObjectStorageCollection<TEntity>

public interface IObjectStorageCollection<TEntity>
string CollectionName { get; }

Task<TEntity> AddAsync(TEntity entity, CancellationToken cancellationToken = default)

Task<bool> AnyAsync(Expression<Func<TEntity, bool>> predicate, CancellationToken cancellationToken = default)

Task<int> CountAsync(Expression<Func<TEntity, bool>> predicate, CancellationToken cancellationToken = default)

Task DeleteAsync(TEntity entity, CancellationToken cancellationToken = default)

Task<TEntity> FirstAsync(Expression<Func<TEntity, bool>> predicate, CancellationToken cancellationToken = default)

Task<TEntity> FirstOrDefaultAsync(Expression<Func<TEntity, bool>> predicate, CancellationToken cancellationToken = default)

Task<List<TEntity>> GetAllAsync(CancellationToken cancellationToken = default)

Task<List<TEntity>> GetAllAsync(Expression<Func<TEntity, bool>> predicate, CancellationToken cancellationToken = default)

Task<TEntity> GetAsync(object key, CancellationToken cancellationToken = default)

Task<long> LongCountAsync(Expression<Func<TEntity, bool>> predicate, CancellationToken cancellationToken = default)

Task<TEntity> UpdateAsync(TEntity entity, CancellationToken cancellationToken = default)

Task UpdateManyAsync<TField>(Expression<Func<TEntity, bool>> predicate, Expression<Func<TEntity, TField>> fieldExpression, TField value, CancellationToken cancellationToken = default)

Task UpdateManyAsync<TField, TField2>(Expression<Func<TEntity, bool>> predicate, Expression<Func<TEntity, TField>> fieldExpression, TField value, Expression<Func<TEntity, TField2>> fieldExpression2, TField2 value2, CancellationToken cancellationToken = default)

Task UpdateManyAsync<TField, TField2, TField3>(Expression<Func<TEntity, bool>> predicate, Expression<Func<TEntity, TField>> fieldExpression, TField value, Expression<Func<TEntity, TField2>> fieldExpression2, TField2 value2, Expression<Func<TEntity, TField3>> fieldExpression3, TField3 value3, CancellationToken cancellationToken = default)

Task UpdateOneAsync<TField>(Expression<Func<TEntity, bool>> predicate, Expression<Func<TEntity, TField>> fieldExpression, TField value, CancellationToken cancellationToken = default)

Task UpdateOneAsync<TField, TField2>(Expression<Func<TEntity, bool>> predicate, Expression<Func<TEntity, TField>> fieldExpression, TField value, Expression<Func<TEntity, TField2>> fieldExpression2, TField2 value2, CancellationToken cancellationToken = default)

Task UpdateOneAsync<TField, TField2, TField3>(Expression<Func<TEntity, bool>> predicate, Expression<Func<TEntity, TField>> fieldExpression, TField value, Expression<Func<TEntity, TField2>> fieldExpression2, TField2 value2, Expression<Func<TEntity, TField3>> fieldExpression3, TField3 value3, CancellationToken cancellationToken = default)