dotnet-object-storage/PoweredSoft.ObjectStorage.Core/IObjectStorageCollection.cs
David Lebee b789b367c2 initial
2019-02-12 17:39:16 -05:00

17 lines
611 B
C#

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();
}
}