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, 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, Child destination) { this.RegisterNamespace(source, XmlNamespaces.SalesNamespacePrefix, XmlNamespaces.SalesNamespace); destination.Id = source.ToInt("Id"); destination.Value = source.ToFloat("Value", XmlNamespaces.SalesNamespacePrefix); destination.Start = source.ToDateTime("Start"); }
public override void Map(XPathProcessor source, Animal destination) { destination.Id = source.ToInt("Id2"); destination.Name = source.ToString("Name2"); }