コード例 #1
0
 public LevelRepositoryAsync(ToeicOnlineContext dbContext, IMapper mapper) : base(dbContext)
 {
     _levels = dbContext.Set <Level>();
     _mapper = mapper;
 }
コード例 #2
0
 public virtual async Task <T> GetByIdAsync(int id)
 {
     return(await _dbContext.Set <T>().FindAsync(id));
 }
コード例 #3
0
 public ClassRepositoryAsync(ToeicOnlineContext dbContext, IMapper mapper) : base(dbContext)
 {
     _classes = dbContext.Set <Class>();
     _mapper  = mapper;
 }