Skip to content

Commit 353fc5c

Browse files
Async Repository classes are not inheriting from the correct interface
1 parent 8a9a1c0 commit 353fc5c

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

src/DotNetToolkit.Repository.AdoNet/AdoNetRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public AdoNetRepository(string providerName, string connectionString, IEnumerabl
4444
/// <summary>
4545
/// Represents a repository for entity framework with a default primary key value of type integer.
4646
/// </summary>
47-
public class AdoNetRepository<TEntity> : AdoNetRepositoryBase<TEntity, int>, IRepository<TEntity> where TEntity : class
47+
public class AdoNetRepository<TEntity> : AdoNetRepositoryBase<TEntity, int>, IRepositoryAsync<TEntity> where TEntity : class
4848
{
4949
#region Constructors
5050

src/DotNetToolkit.Repository.EntityFramework/EfRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public EfRepository(DbContext context, IEnumerable<IRepositoryInterceptor> inter
3030
/// <summary>
3131
/// Represents a repository for entity framework with a default primary key value of type integer.
3232
/// </summary>
33-
public class EfRepository<TEntity> : EfRepositoryBase<TEntity, int>, IRepository<TEntity> where TEntity : class
33+
public class EfRepository<TEntity> : EfRepositoryBase<TEntity, int>, IRepositoryAsync<TEntity> where TEntity : class
3434
{
3535
#region Constructors
3636

src/DotNetToolkit.Repository.EntityFrameworkCore/EfCoreRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public EfCoreRepository(DbContext context, IEnumerable<IRepositoryInterceptor> i
3030
/// <summary>
3131
/// Represents a repository for entity framework core with a default primary key value of type integer.
3232
/// </summary>
33-
public class EfCoreRepository<TEntity> : EfCoreRepositoryBase<TEntity, int>, IRepository<TEntity> where TEntity : class
33+
public class EfCoreRepository<TEntity> : EfCoreRepositoryBase<TEntity, int>, IRepositoryAsync<TEntity> where TEntity : class
3434
{
3535
#region Constructors
3636

src/DotNetToolkit.Repository/IRepositoryAsync.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
/// </summary>
99
/// <typeparam name="TEntity">The type of the entity.</typeparam>
1010
/// <typeparam name="TKey">The type of the primary key.</typeparam>
11+
/// <seealso cref="DotNetToolkit.Repository.IRepository{TEntity, TKey}" />
12+
/// <seealso cref="DotNetToolkit.Repository.Traits.ICanAggregateAsync{TEntity}" />
13+
/// <seealso cref="DotNetToolkit.Repository.Traits.ICanAddAsync{TEntity}" />
14+
/// <seealso cref="DotNetToolkit.Repository.Traits.ICanUpdateAsync{TEntity}" />
15+
/// <seealso cref="DotNetToolkit.Repository.Traits.ICanDeleteAsync{TEntity, TKey}" />
16+
/// <seealso cref="DotNetToolkit.Repository.Traits.ICanGetAsync{TEntity, TKey}" />
17+
/// <seealso cref="DotNetToolkit.Repository.Traits.ICanFindAsync{TEntity}" />
18+
/// <seealso cref="System.IDisposable" />
1119
public interface IRepositoryAsync<TEntity, in TKey> : IRepository<TEntity, TKey>, ICanAggregateAsync<TEntity>, ICanAddAsync<TEntity>, ICanUpdateAsync<TEntity>, ICanDeleteAsync<TEntity, TKey>, ICanGetAsync<TEntity, TKey>, ICanFindAsync<TEntity>, IDisposable
1220
where TEntity : class
1321
{
@@ -17,7 +25,9 @@ public interface IRepositoryAsync<TEntity, in TKey> : IRepository<TEntity, TKey>
1725
/// Represents an asynchronous repository with a default primary key value of type integer.
1826
/// </summary>
1927
/// <typeparam name="TEntity">The type of the entity.</typeparam>
20-
public interface IRepositoryAsync<TEntity> : IRepositoryAsync<TEntity, int> where TEntity : class
28+
/// <seealso cref="DotNetToolkit.Repository.IRepositoryAsync{TEntity, TKey}" />
29+
/// <seealso cref="DotNetToolkit.Repository.IRepository{TEntity}" />
30+
public interface IRepositoryAsync<TEntity> : IRepositoryAsync<TEntity, int>, IRepository<TEntity> where TEntity : class
2131
{
2232
}
2333
}

0 commit comments

Comments
 (0)