예제 #1
0
 public IEnumerable <Clients> GetAll()
 {
     return(db.Set <Clients>().ToList());
 }
예제 #2
0
 public override IEnumerable <Orders> GetAll()
 {
     return(db.Set <Orders>());
 }
예제 #3
0
 public Repository(DB_Context context)
 {
     _context = context;
     _dbSet   = _context.Set <TEntity>();
 }
예제 #4
0
 public override IEnumerable <FilmImages> GetAll()
 {
     return(db.Set <FilmImages>().ToList());
 }
예제 #5
0
 public override IEnumerable <Seances> GetAll()
 {
     return(db.Set <Seances>().ToList());
 }
예제 #6
0
 public IEnumerable <Owners> GetAll()
 {
     return(db.Set <Owners>().ToList());
 }
예제 #7
0
 public override IEnumerable <Cinemas> GetAll()
 {
     return(db.Set <Cinemas>().ToList());
 }
예제 #8
0
 public IEnumerable <Admins> GetAll()
 {
     return(db.Set <Admins>().ToList());
 }
예제 #9
0
 public virtual T Create(T entity)
 {
     _context.Set <T>().Add(entity);
     _context.SaveChangesAsync();
     return(entity);
 }