Skip to content

Commit

Permalink
fix modifiers in entity framework repository for reader and writer fi…
Browse files Browse the repository at this point in the history
…elds
  • Loading branch information
Grimooar authored and Insei committed Sep 11, 2023
1 parent 5a41634 commit b7f2efc
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ public class KirelGenericEntityFrameworkRepository<TKey, TEntity, TDbContext> :
where TDbContext : DbContext
{
private readonly TDbContext _dbContext;
internal virtual IQueryable<TEntity> Reader
/// <summary>
/// Reader field for read access
/// </summary>
protected virtual IQueryable<TEntity> Reader
{
get => Writer.AsQueryable();
}
internal virtual DbSet<TEntity> Writer
/// <summary>
/// Writer field for write access
/// </summary>
protected virtual DbSet<TEntity> Writer
{
get => _dbContext.Set<TEntity>();
}
Expand Down

0 comments on commit b7f2efc

Please sign in to comment.