public GenericRepositorio(MySqlServerContext context)
 {
     _context = context;
     dataSet  = context.Set <T>();
 }
Example #2
0
 public async Task <T> GetAsync(int id)
 {
     return(await sqlServerContext.Set <T>().FindAsync(id));
 }