public static SqlStationDataType Convert(CsvStationDataType source)
 {
     return(new SqlStationDataType
     {
         StartDate = source.StartDate,
         Identifier = source.Identifier,
         Longitude = source.Longitude,
         Latitude = source.Latitude,
         EndDate = source.EndDate,
         StationHeight = source.StationHeight,
         Name = source.Name,
         State = source.State
     });
 }
Example #2
0
        public static ElasticStationType Convert(CsvStationType source)
        {
            if (source == null)
            {
                return(null);
            }

            return(new ElasticStationType
            {
                Identifier = source.Identifier,
                Name = source.Name,
                GeoLocation = new GeoLocation(source.Latitude, source.Longitude),
                StartDate = source.StartDate,
                StationHeight = source.StationHeight,
                EndDate = source.EndDate,
                State = source.State
            });
        }
        public static Neo4jStationType Convert(CsvStationType source)
        {
            if (source == null)
            {
                return(null);
            }

            return(new Neo4jStationType
            {
                Identifier = source.Identifier,
                Name = source.Name,
                StartDate = source.StartDate,
                StationHeight = source.StationHeight,
                EndDate = source.EndDate,
                State = source.State,
                Latitude = source.Latitude,
                Longitude = source.Longitude
            });
        }