Ejemplo n.º 1
0
        public static void SetChildLoadOptions(DataLoadOptions loadOptions)
        {
            loadOptions.LoadWith <AddressPoint>(ap => ap.AddressPointStatus);
            loadOptions.LoadWith <AddressPoint>(ap => ap.GeographicPointLocation);

            AddressPointStatus.SetChildLoadOptions(loadOptions);
            GeographicPointLocation.SetChildLoadOptions(loadOptions);
        }
 public static GeographicPointLocationType ToXmlType(GeographicPointLocation db)
 {
     if (db != null)
     {
         return(new GeographicPointLocationType()
         {
             crsIdentifier = db.CrsIdentifier,
             GeographicCoordinateTuple = GeographicCoorditaneTuple.ToXmlType(db.GeographicCoorditaneTuple),
         });
     }
     return(null);
 }
Ejemplo n.º 3
0
 public static AddressPoint FromXmlType(AddressPointType oio)
 {
     if (oio != null)
     {
         return(new AddressPoint
         {
             AddressPointStatus = AddressPointStatus.FromXmlType(oio.AddressPointStatusStructure),
             GeographicPointLocation = GeographicPointLocation.FromXmlType(oio.GeographicPointLocation),
             Identifier = oio.AddressPointIdentifier,
         });
     }
     return(null);
 }
Ejemplo n.º 4
0
 public static AddressPointType ToXmlType(AddressPoint db)
 {
     if (db != null)
     {
         return(new AddressPointType()
         {
             AddressPointIdentifier = db.Identifier,
             AddressPointStatusStructure = AddressPointStatus.ToXmlType(db.AddressPointStatus),
             GeographicPointLocation = GeographicPointLocation.ToXmlType(db.GeographicPointLocation)
         });
     }
     return(null);
 }