Skip to content

Commit a5bf687

Browse files
committed
Add XML documentation for the DbContext field in RepositoryBase and making it protected so the repositories that inherit the base class can write their own queries
1 parent c5e8b2a commit a5bf687

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/EFCore/Services/RepositoryBase.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ public abstract class RepositoryBase<TEntity, TEntityId> : IRepositoryBase<TEnti
3030
where TEntity : EntityBase<TEntityId>, IAggregateRoot
3131
where TEntityId : notnull
3232
{
33-
private protected readonly DbContext _context;
33+
/// <summary>
34+
/// Gets the EF Core database context used by this repository for data access operations.
35+
/// </summary>
36+
protected readonly DbContext _context;
3437

3538
/// <summary>
3639
/// Initializes a new instance of the <see cref="RepositoryBase{TEntity, TEntityId}"/> class.

0 commit comments

Comments
 (0)