public override void Map(XPathProcessor source, Entity destination) { destination.Id = source.ToString("Id"); destination.Id2 = source.ToString("Id2"); destination.Name = source.ToString("Name"); destination.Name2 = source.ToString("Name2"); destination.Value = source.ToInt("Value", isAttribute: true); destination.Total = source.ToInt("Total"); destination.NullProperties["Total"] = source.IsNull("Total"); }
public override void Map(XPathProcessor source, ScratchEntity destination) { destination.Id = source.ToString("Id"); destination.Id2 = source.ToString("Id2"); destination.Name = source.ToString("Name"); destination.Name2 = source.ToString("Name2"); destination.Value = source.ToInt("Value", isAttribute: true); destination.Date = source.ToDateTime("Date"); destination.DateTime = source.ToDateTime("DateTime"); destination.DateTimeOffset = source.ToDateTimeOffset("DateTimeOffset"); destination.Total = source.ToInt("Total"); }
public override void Map(XPathProcessor source, Parent destination) { destination.Id = source.ToInt("Id"); destination.Name = source.ToString("Name"); destination.Cost = source.ToDecimal("Cost"); destination.Children = this.engine.MapList <XPathProcessor, Child>(source, "Children"); }
public override void Map(XPathProcessor source, Dog destination) { this.RegisterNamespace(source, XmlNamespaces.PetNamespacePrefix, XmlNamespaces.PetNamespace); this.Engine.Map(source, destination as Animal); destination.Tricks = source.ToString("Tricks"); }
public override void Map(XPathProcessor source, Animal destination) { this.RegisterNamespace(source, XmlNamespaces.AppNamespacePrefix, XmlNamespaces.AppNamespace); // NB Due to children potentially being in different namespace, properties must specify prefix here destination.Id = source.ToInt("Id", XmlNamespaces.AppNamespacePrefix); destination.Name = source.ToString("Name", XmlNamespaces.AppNamespacePrefix); }
public override void Map(XPathProcessor source, Animal destination) { destination.Id = source.ToInt("Id2"); destination.Name = source.ToString("Name2"); }
public override void Map(XPathProcessor source, Owner destination) { destination.Name = source.ToString("Name"); destination.Pets = this.Engine.MapList <XPathProcessor, Animal>(source, "Pets", string.Empty, collectionItemNodeNamespacePrefix: this.NamespacePrefix); }
public override void Map(XPathProcessor source, Animal destination) { destination.Id = source.ToInt("Id2"); destination.Name = source.ToString("Name2"); }
public override void Map(XPathProcessor source, Identifier destination) { destination.Scheme = source.ToString("scheme", isAttribute: true); destination.Value = source.ToString(CurrentXPath); }
public override void Map(XPathProcessor source, Owner destination) { destination.Id = this.Engine.Map <Identifier>(source, "Identifier"); destination.Name = source.ToString("Name"); destination.Pets = this.Engine.MapList <XPathProcessor, Animal>(source, "Pets"); }
public override void Map(XPathProcessor source, Id destination) { destination.System = source.ToString("system", isAttribute: true); destination.Value = source.ToString(CurrentXPath); }