using System.Linq.Expressions; namespace DigitalData.Core.Abstraction.Application.Repository; public interface IRepository { public IEntityMapper Mapper { get; } public Task CreateAsync(TEntity entity, CancellationToken cancellation = default); public Task> CreateAsync(IEnumerable entities, CancellationToken cancellation = default); public IQueryable Read(); public IQueryable ReadOnly(); public Task UpdateAsync(TDto dto, Expression> expression, CancellationToken cancellation = default); public Task DeleteAsync(Expression> expression, CancellationToken cancellation = default); }