Skip to content

Commit 34b842d

Browse files
Merge pull request #6 from johelvisguzman/hotfix/issue5
Closes #5
2 parents 7c8117f + b33b005 commit 34b842d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/DotNetToolkit.Repository.EntityFramework/EfRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public EfRepository(DbContext context) : base(context) { }
2121
/// <summary>
2222
/// Represents a repository for entity framework with a default primary key value of type integer.
2323
/// </summary>
24-
public class EfRepository<TEntity> : EfRepositoryBase<TEntity, int> where TEntity : class
24+
public class EfRepository<TEntity> : EfRepositoryBase<TEntity, int>, IRepository<TEntity> where TEntity : class
2525
{
2626
#region Constructors
2727

src/DotNetToolkit.Repository/IRepository.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,12 @@ public interface IRepository<TEntity, in TKey> : ICanAggregate<TEntity>, ICanAdd
1212
where TEntity : class
1313
{
1414
}
15+
16+
/// <summary>
17+
/// Represents a repository with a default primary key value of type integer.
18+
/// </summary>
19+
/// <typeparam name="TEntity">The type of the entity.</typeparam>
20+
public interface IRepository<TEntity> : IRepository<TEntity, int> where TEntity : class
21+
{
22+
}
1523
}

0 commit comments

Comments
 (0)