dotnet-object-storage/PoweredSoft.ObjectStorage.Core/IObjectStorageCollection.cs

17 lines
611 B
C#
Raw Normal View History

2019-02-12 17:39:16 -05:00
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace PoweredSoft.ObjectStorage.Core
{
public interface IObjectStorageCollection<TEntity>
{
string CollectionName { get; }
Task<TEntity> AddAsync(TEntity entity, CancellationToken cancellationToken = default(CancellationToken));
Task DeleteAsync(TEntity entity, CancellationToken cancellationToken = default(CancellationToken));
Task<TEntity> UpdateAsync(TEntity entity, CancellationToken cancellationToken = default(CancellationToken));
IQueryable<TEntity> AsQueryable();
}
}