Skip to content

Commit 7c4dbb6

Browse files
Merge pull request #93 from johelvisguzman/issue92
Fixed inheritance issue with async traits
2 parents ae159f7 + 25f56cf commit 7c4dbb6

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

src/DotNetToolkit.Repository/Traits/ICanAddAsync.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
/// Represents an asynchronous trait for adding items to a repository.
99
/// </summary>
1010
/// <typeparam name="TEntity">The type of the entity.</typeparam>
11-
public interface ICanAddAsync<in TEntity> where TEntity : class
11+
/// <seealso cref="DotNetToolkit.Repository.Traits.ICanAdd{TEntity}" />
12+
public interface ICanAddAsync<in TEntity> : ICanAdd<TEntity> where TEntity : class
1213
{
1314
/// <summary>
1415
/// Asynchronously adds the specified <paramref name="entity" /> into the repository.

src/DotNetToolkit.Repository/Traits/ICanAggregateAsync.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
/// Represents an asynchronous trait for aggregating items from a repository.
1414
/// </summary>
1515
/// <typeparam name="TEntity">The type of the entity.</typeparam>
16+
/// <seealso cref="DotNetToolkit.Repository.Traits.ICanAggregate{TEntity}" />
1617
public interface ICanAggregateAsync<TEntity> : ICanAggregate<TEntity> where TEntity : class
1718
{
1819
/// <summary>

src/DotNetToolkit.Repository/Traits/ICanDeleteAsync.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
/// </summary>
1111
/// <typeparam name="TEntity">The type of the entity.</typeparam>
1212
/// <typeparam name="TKey">The type of the primary key.</typeparam>
13-
public interface ICanDeleteAsync<TEntity, in TKey> where TEntity : class
13+
/// <seealso cref="DotNetToolkit.Repository.Traits.ICanDelete{TEntity, TKey}" />
14+
public interface ICanDeleteAsync<TEntity, in TKey> : ICanDelete<TEntity, TKey> where TEntity : class
1415
{
1516
/// <summary>
1617
/// Asynchronously deletes an entity with the given primary key value in the repository.

src/DotNetToolkit.Repository/Traits/ICanFindAsync.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
/// Represents a trait for finding items in a repository.
1313
/// </summary>
1414
/// <typeparam name="TEntity">The type of the entity.</typeparam>
15-
public interface ICanFindAsync<TEntity> where TEntity : class
15+
/// <seealso cref="DotNetToolkit.Repository.Traits.ICanFind{TEntity}" />
16+
public interface ICanFindAsync<TEntity> : ICanFind<TEntity> where TEntity : class
1617
{
1718
/// <summary>
1819
/// Asynchronously finds the first entity in the repository that satisfies the criteria specified by the <paramref name="predicate" /> in the repository.

src/DotNetToolkit.Repository/Traits/ICanGetAsync.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
/// </summary>
1212
/// <typeparam name="TEntity">The type of the entity.</typeparam>
1313
/// <typeparam name="TKey">The type of the primary key.</typeparam>
14-
public interface ICanGetAsync<TEntity, in TKey> where TEntity : class
14+
/// <seealso cref="DotNetToolkit.Repository.Traits.ICanGet{TEntity, TKey}" />
15+
public interface ICanGetAsync<TEntity, in TKey> : ICanGet<TEntity, TKey> where TEntity : class
1516
{
1617
/// <summary>
1718
/// Asynchronously gets an entity with the given primary key value in the repository.

src/DotNetToolkit.Repository/Traits/ICanUpdateAsync.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
/// Represents an asynchronous trait for updating items in a repository.
99
/// </summary>
1010
/// <typeparam name="TEntity">The type of the entity.</typeparam>
11-
public interface ICanUpdateAsync<in TEntity> where TEntity : class
11+
/// <seealso cref="DotNetToolkit.Repository.Traits.ICanUpdate{TEntity}" />
12+
public interface ICanUpdateAsync<in TEntity> : ICanUpdate<TEntity> where TEntity : class
1213
{
1314
/// <summary>
1415
/// Asynchronously updates the specified <paramref name="entity" /> in the repository.

0 commit comments

Comments
 (0)