mirror of https://github.com/abpframework/abp.git
4 changed files with 16 additions and 18 deletions
@ -1,16 +1,14 @@ |
|||||
using Microsoft.EntityFrameworkCore; |
using Microsoft.EntityFrameworkCore; |
||||
using Volo.Abp.Domain.Entities; |
using Volo.Abp.Domain.Entities; |
||||
|
using Volo.Abp.Domain.Repositories; |
||||
|
|
||||
namespace Volo.Abp.Repositories.EntityFrameworkCore |
namespace Volo.Abp.Repositories.EntityFrameworkCore |
||||
{ |
{ |
||||
public interface IEfCoreRepository |
public interface IEfCoreRepository<TEntity, TPrimaryKey> : IQueryableRepository<TEntity, TPrimaryKey> |
||||
{ |
|
||||
DbContext DbContext { get; } |
|
||||
} |
|
||||
|
|
||||
public interface IEfCoreRepository<TEntity, TPrimaryKey> : IEfCoreRepository |
|
||||
where TEntity : class, IEntity<TPrimaryKey> |
where TEntity : class, IEntity<TPrimaryKey> |
||||
{ |
{ |
||||
|
DbContext DbContext { get; } |
||||
|
|
||||
DbSet<TEntity> DbSet { get; } |
DbSet<TEntity> DbSet { get; } |
||||
} |
} |
||||
} |
} |
||||
Loading…
Reference in new issue