protected Repository(DesafioDbContext db)
 {
     Db    = db;
     DbSet = db.Set <TEntity>();
 }
Exemple #2
0
 public void Adicionar(Familia obj) => _context.Set <Familia>().Add(obj);