Esempio n. 1
0
        public override CadeauEvenement Insert(CadeauEvenement toInsert)
        {
            Dictionary <string, object> Parameters = MapToDico(toInsert);

            base.Insert(Parameters);
            return(toInsert);
        }
 private Dictionary<string, object> MapToDico(CadeauEvenement toInsert)
 {
     Dictionary<string, object> p = new Dictionary<string, object>();
     p["_idEvenement"] = toInsert.IdCadeau;
     p["IdEvenement"] = toInsert.IdEvenement;
     p["Preference"] = toInsert.Preference;
     return p;
 }
Esempio n. 3
0
        public override bool Update(CadeauEvenement toUpdate)
        {
            Dictionary <string, object> Parameters = MapToDico(toUpdate);

            return(base.Update(Parameters));
        }