public override Consomme Insert(Consomme toInsert)
        {
            Dictionary <string, object> Parameters = MapToDico(toInsert);

            base.Insert(Parameters);
            return(toInsert);
        }
        private Dictionary <string, object> MapToDico(Consomme toInsert)
        {
            Dictionary <string, object> p = new Dictionary <string, object>();

            p["idMachine"]     = toInsert.IdMachine;
            p["idConsomation"] = toInsert.IdConsommation;
            p["dateConsomme"]  = toInsert.DateConsomme;
            return(p);
        }
        public override bool Update(Consomme toUpdate)
        {
            Dictionary <string, object> Parameters = MapToDico(toUpdate);

            return(base.Update(Parameters));
        }