Class DbContextRepository<TDbContext, TEntity>
主键为Guid类型的仓储基类
public class DbContextRepository<TDbContext, TEntity> : RepositoryBase<TDbContext, TEntity, string>, IStringRepository<TEntity>, ILogRepository<TEntity, string>, IRepository<TEntity, string>, IRepository where TDbContext : DbContext where TEntity : StringEntityBase
Type Parameters
TDbContext
TEntity
实体类型
- Inheritance
-
RepositoryBase<TDbContext, TEntity, string>DbContextRepository<TDbContext, TEntity>
- Implements
-
IStringRepository<TEntity>ILogRepository<TEntity, string>IRepository<TEntity, string>
- Inherited Members
- Extension Methods
Constructors
DbContextRepository(TDbContext)
public DbContextRepository(TDbContext dbContext)
Parameters
dbContext
TDbContext