예제 #1
0
 public static void SetXmlValues(XContainer element, LastUpdateType obj)
 {
     element.GetXElement("CustomerId").SetValue(obj.CustomerId);
     element.GetXElement("NameTicket").SetValue(obj.NameTicket);
     element.GetXElement("Upd").SetValue(obj.Upd);
     element.GetXElement("LastDate").SetValue(obj.LastDate);
     element.GetXElement("User").SetValue(obj.User);
     element.GetXElement("IdEstablishment").SetValue(obj.IdEstablishment);
 }
예제 #2
0
 public static XElement ToXElement(LastUpdateType obj)
 {
     return(new XElement("rec",
                         new XElement("CustomerId", obj.CustomerId),
                         new XElement("NameTicket", obj.NameTicket),
                         new XElement("Upd", obj.Upd),
                         new XElement("LastDate", obj.LastDate),
                         new XElement("User", obj.User),
                         new XElement("IdEstablishment", obj.IdEstablishment)));
 }