Beispiel #1
0
 protected RepositoryBaseSqlServer(ContasContext db)
 {
     Db    = db;
     DbSet = Db.Set <TEntity>();
 }
Beispiel #2
0
 public BaseRepository(ContasContext context)
 {
     this.context = context;
     dbSet        = context.Set <T>();
 }
Beispiel #3
0
 public Repository(ContasContext context)
 {
     Db    = context;
     DbSet = Db.Set <TEntity>();
 }
Beispiel #4
0
 public List <T> Listar <T>() where T : class
 {
     return(db.Set <T>().ToList());
 }