Exemplo n.º 1
0
 public virtual async Task AddAsync(T entity)
 {
     ctx.Set <T>().Add(entity);
     await ctx.SaveChangesAsync();
 }
Exemplo n.º 2
0
 public BaseRepository(GtonContext context)
 {
     ctx = context;
     db  = context.Set <T>();
 }