/// <summary>
 /// Créez un nouvel objet MesNiveauProtection.
 /// </summary>
 /// <param name="cleNiveauProtection">Valeur initiale de la propriété CleNiveauProtection.</param>
 /// <param name="cleModeleMesure">Valeur initiale de la propriété CleModeleMesure.</param>
 public static MesNiveauProtection CreateMesNiveauProtection(global::System.Int32 cleNiveauProtection, global::System.Int32 cleModeleMesure)
 {
     MesNiveauProtection mesNiveauProtection = new MesNiveauProtection();
     mesNiveauProtection.CleNiveauProtection = cleNiveauProtection;
     mesNiveauProtection.CleModeleMesure = cleModeleMesure;
     return mesNiveauProtection;
 }
        /// <summary>
        /// Duplique le niveau de protection
        /// </summary>
        /// <returns></returns>
        public MesNiveauProtection DupliquerMesNiveauProtection()
        {
            MesNiveauProtection tempitem = new MesNiveauProtection();
            tempitem = this.Clone();
            tempitem.CleNiveauProtection = 0;
            return tempitem;

            //return new MesNiveauProtection()
            //{
            //    MesModeleMesure = this.MesModeleMesure,
            //    SeuilMaxi = this.SeuilMaxi,
            //    SeuilMini = this.SeuilMini,

            //};
        }
 /// <summary>
 /// Méthode déconseillée pour ajouter un nouvel objet à l'EntitySet MesNiveauProtection. Utilisez la méthode .Add de la propriété ObjectSet&lt;T&gt; associée à la place.
 /// </summary>
 public void AddToMesNiveauProtection(MesNiveauProtection mesNiveauProtection)
 {
     base.AddObject("MesNiveauProtection", mesNiveauProtection);
 }