/// <summary> /// Créez un nouvel objet InsInstrument. /// </summary> /// <param name="cleInstrument">Valeur initiale de la propriété CleInstrument.</param> /// <param name="libelle">Valeur initiale de la propriété Libelle.</param> /// <param name="supprime">Valeur initiale de la propriété Supprime.</param> public static InsInstrument CreateInsInstrument(global::System.Int32 cleInstrument, global::System.String libelle, global::System.Boolean supprime) { InsInstrument insInstrument = new InsInstrument(); insInstrument.CleInstrument = cleInstrument; insInstrument.Libelle = libelle; insInstrument.Supprime = supprime; return insInstrument; }
/// <summary> /// Exporte l'objet InsInstrument passé en paramètre en un XmlElement /// </summary> /// <param name="instrument">Objet à transformer en XML</param> /// <param name="XmlDoc">XMLDocument racine</param> /// <returns></returns> private XmlElement getInsInstrumentToXML(InsInstrument instrument, XmlDocument XmlDoc) { XmlElement elemInstrument = XmlDoc.CreateElement("Instrument"); XmlElement elemInstrumentDetail = XmlDoc.CreateElement("CleInstrument"); elemInstrumentDetail.InnerText = instrument.CleInstrument.ToString(); elemInstrument.AppendChild(elemInstrumentDetail); elemInstrumentDetail = XmlDoc.CreateElement("Libelle"); elemInstrumentDetail.InnerText = instrument.Libelle; elemInstrument.AppendChild(elemInstrumentDetail); return elemInstrument; }
/// <summary> /// Méthode déconseillée pour ajouter un nouvel objet à l'EntitySet InsInstrument. Utilisez la méthode .Add de la propriété ObjectSet<T> associée à la place. /// </summary> public void AddToInsInstrument(InsInstrument insInstrument) { base.AddObject("InsInstrument", insInstrument); }