public DbModel.Flight Convert() { var flight = new DbModel.Flight(); if (Identification != null) { flight.Identification = Identification.Convert(); } if (Status != null) { flight.Status = Status.Convert(); } if (Aircraft != null) { flight.Aircraft = Aircraft.Convert(); } if (Airline != null) { flight.Airline = Airline.Convert(); } if (Airport != null) { flight.Airport = Airport.Convert(); } if (Time != null) { flight.Time = Time.Convert(); } if (Trail != null) { flight.Trails = Trail.ConvertAll <DbModel.Trail>(t => t.Convert()); } if (FirstTimestamp != null) { flight.FirstTimestamp = FirstTimestamp; } return(flight); }