Exemple #1
0
        public HashSet<Catalogo> catalogos() {

            using (var db = new DataBase.DbContextLocal())
            {
                return db.Set<Catalogo>().ToHashSet<Catalogo>();
            }
        }
Exemple #2
0
 public HashSet<Pastel> getPasteles(int idc) {
     using (var db = new DataBase.DbContextLocal())
     {
         return db.Set<Pastel>().Where(x => x.ID_CATALOGO == idc).ToHashSet<Pastel>();
     }
 }
Exemple #3
0
 public Catalogo calogoPorId(int id) {
     using (var db = new DataBase.DbContextLocal()) {
         return db.Set<Catalogo>().FirstOrDefault(x => x.ID_CATALOGO == id);
     }
 }