Ejemplo n.º 1
0
        public async Task Create(TEntity entity)
        {
            await _dbContext.Set <TEntity>().AddAsync(entity);

            await _dbContext.SaveChangesAsync();
        }
Ejemplo n.º 2
0
 public BaseRepository(BeamityDbContext context)
 {
     _context   = context;
     this.Table = context.Set <TModel>();
 }