using DigitalData.Core.Abstractions.Infrastructure; using Microsoft.EntityFrameworkCore; using System.Linq.Expressions; namespace DigitalData.Core.Infrastructure; public class DbRepository : IRepository where TDbContext : DbContext where TEntity : class { protected TDbContext Context; protected DbSet Entities; public DbRepository(TDbContext context, Func> queryFactory) { Context = context; Entities = queryFactory(context); } public Task CreateAsync(TEntity dto, CancellationToken ct = default) { throw new NotImplementedException(); } public Task CreateAsync(IEnumerable dtos, CancellationToken ct = default) { throw new NotImplementedException(); } public Task> DeleteAsync(Expression expression, CancellationToken ct = default) { throw new NotImplementedException(); } public Task> ReadAsync(Expression? expression = null, CancellationToken ct = default) { throw new NotImplementedException(); } public Task> UpdateAsync(TDto dto, Expression expression, CancellationToken ct = default) { throw new NotImplementedException(); } }