public Repository(SGLContext context) { Db = context; DbSet = Db.Set <TEntity>(); }
public TEntity Adicionar(TEntity entity) { _dbContext.Set <TEntity>().Add(entity); return(entity); }
public Repository(SGLContext context) { Db = context; DbSet = Db.Set <TEntity>(); }
public TEntity Adicionar(TEntity entity) { _dbContext.Set <TEntity>().Add(entity); return(entity); }