예제 #1
0
 public Task <AccessCode> GetBy(Expression <Func <AccessCode, bool> > predicate)
 {
     using (ZpiDbContext db = _dbContext)
     {
         return(Task.FromResult(_dbContext.AccessCodes.FirstOrDefault(predicate)));
     }
 }
예제 #2
0
 public UserRepository(ZpiDbContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #3
0
 public AccessCodeRepository(ZpiDbContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #4
0
 public TagRepository(ZpiDbContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #5
0
 public VideoRepository(ZpiDbContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #6
0
 public CourseRepository(ZpiDbContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #7
0
 public CategoryRepository(ZpiDbContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #8
0
 public RaitingRepository(ZpiDbContext dbContext)
 {
     _dbContext = dbContext;
 }