Пример #1
0
 public UnitOfWork(SimpleBlogProjectDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public BaseRepository(SimpleBlogProjectDbContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }