Exemple #1
0
 public List <T> GetAll <T>() where T : class, BaseModel
 {
     return(db.Set <T>().ToList());
 }
Exemple #2
0
 public BaseService(
     PhonebookDbContext dbContext)
 {
     _dbContext = dbContext;
     this.dbSet = _dbContext.Set <T>();
 }