Exemplo n.º 1
0
        public void DeleteHauspaketAttribut(HauspaketAttributEntity hauspaketAttributEntity)
        {
            hauspaket_attribut result = (from x in db.hauspaket_attribut
                                         where x.attribut_id == hauspaketAttributEntity.AttributId
                                         select x).SingleOrDefault();

            db.hauspaket_attribut.Remove(result);
            db.SaveChanges();
        }
Exemplo n.º 2
0
        public void UpdateHauspaketAttribut(HauspaketAttributEntity hauspaketAttributEntity)
        {
            hauspaket_attribut result = (from x in db.hauspaket_attribut
                                         where x.attribut_id == hauspaketAttributEntity.AttributId
                                         select x).SingleOrDefault();

            result.attribut_id          = hauspaketAttributEntity.AttributId;
            result.attribut_typ         = hauspaketAttributEntity.AttributTyp;
            result.attribut_typ_anzeige = hauspaketAttributEntity.AttributTypAnzeige;

            db.SaveChanges();
        }
Exemplo n.º 3
0
        public void InsertHauspaketAttribut(HauspaketAttributEntity hauspaketAttributEntity)
        {
            hauspaket_attribut h = new hauspaket_attribut()
            {
                attribut_id          = hauspaketAttributEntity.AttributId,
                attribut_typ         = hauspaketAttributEntity.AttributTyp,
                attribut_typ_anzeige = hauspaketAttributEntity.AttributTypAnzeige
            };

            db.hauspaket_attribut.Add(h);
            db.SaveChanges();
        }