Skip to content

Commit cf51ed6

Browse files
(GH-594) Added missing properties to repositories
1 parent cfbca79 commit cf51ed6

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/DotNetToolkit.Repository/IRepository.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,16 @@ public interface IRepository<TEntity, in TKey1, in TKey2, in TKey3> : IReadOnlyR
244244
/// <seealso cref="IReadOnlyRepository{TEntity, TKey1, TKey2}" />
245245
public interface IRepository<TEntity, in TKey1, in TKey2> : IReadOnlyRepository<TEntity, TKey1, TKey2> where TEntity : class
246246
{
247+
/// <summary>
248+
/// Gets or sets the value indicating whether all the repository interceptors should be enabled or not.
249+
/// </summary>
250+
bool InterceptorsEnabled { get; set; }
251+
252+
/// <summary>
253+
/// Gets a dictionary for indicating whether the repository interceptor of the specified type should be disabled.
254+
/// </summary>
255+
Dictionary<Type, bool> InterceptorTypesDisabled { get; }
256+
247257
/// <summary>
248258
/// Returns a read-only <see cref="IReadOnlyRepository{TEntity, TKey1, TKey2}" /> wrapper for the current repository.
249259
/// </summary>
@@ -455,6 +465,16 @@ public interface IRepository<TEntity, in TKey1, in TKey2> : IReadOnlyRepository<
455465
/// <seealso cref="IReadOnlyRepository{TEntity, TKey}" />
456466
public interface IRepository<TEntity, in TKey> : IReadOnlyRepository<TEntity, TKey> where TEntity : class
457467
{
468+
/// <summary>
469+
/// Gets or sets the value indicating whether all the repository interceptors should be enabled or not.
470+
/// </summary>
471+
bool InterceptorsEnabled { get; set; }
472+
473+
/// <summary>
474+
/// Gets a dictionary for indicating whether the repository interceptor of the specified type should be disabled.
475+
/// </summary>
476+
Dictionary<Type, bool> InterceptorTypesDisabled { get; }
477+
458478
/// <summary>
459479
/// Returns a read-only <see cref="IReadOnlyRepository{TEntity, TKey}" /> wrapper for the current repository.
460480
/// </summary>

0 commit comments

Comments
 (0)