// transfer serialized data contract to business wcf contract
        // links:
        //  how to generate durians: https://sql2x.org
        //  docLink: http://sql2x.org/documentationLink/6a251e13-1f76-48af-af34-18c592706874
        // parameters:
        //  dataContract: from durian ansi sql select statement
        public List <FlightsWithBookingInformationContract> FlightsWithBookingInformationFromDal(List <FlightsWithBookingInformationData> dataList)
        {
            var list = new List <FlightsWithBookingInformationContract>();

            foreach (FlightsWithBookingInformationData data in dataList)
            {
                var contract = new FlightsWithBookingInformationContract();
                DataToContract(data, contract);
                list.Add(contract);
            }

            return(list);
        }
 // transfer serialized data contract to business wcf contract
 // links:
 //  how to generate durians: https://sql2x.org
 //  docLink: http://sql2x.org/documentationLink/6140089a-d7c9-4e92-b385-f6fd91026820
 // parameters:
 //  dalFlightsWithBookingInformation: from durian ansi sql select statement
 //  dataContract: business wcf contract
 public void DataToContract(FlightsWithBookingInformationData dalFlightsWithBookingInformation, FlightsWithBookingInformationContract dataContract)
 {
     dataContract.FlightId = dalFlightsWithBookingInformation.FlightId;
     dataContract.AirlineIdentifierCode          = dalFlightsWithBookingInformation.AirlineIdentifierCode;
     dataContract.FlightNumber                   = dalFlightsWithBookingInformation.FlightNumber;
     dataContract.DepartureAirportIdentifierCode = dalFlightsWithBookingInformation.DepartureAirportIdentifierCode;
     dataContract.DepartureAirportName           = dalFlightsWithBookingInformation.DepartureAirportName;
     dataContract.ArrivalAirportIdentifierCode   = dalFlightsWithBookingInformation.ArrivalAirportIdentifierCode;
     dataContract.ArrivalAirportName             = dalFlightsWithBookingInformation.ArrivalAirportName;
     dataContract.FromDateTime                   = dalFlightsWithBookingInformation.FromDateTime;
     dataContract.UntilDateTime                  = dalFlightsWithBookingInformation.UntilDateTime;
     dataContract.CanBookFlag                = dalFlightsWithBookingInformation.CanBookFlag;
     dataContract.CanCheckinFlag             = dalFlightsWithBookingInformation.CanCheckinFlag;
     dataContract.InFlightFlag               = dalFlightsWithBookingInformation.InFlightFlag;
     dataContract.FlightsBookedCount         = dalFlightsWithBookingInformation.FlightsBookedCount;
     dataContract.LastDateTimeTypeName       = dalFlightsWithBookingInformation.LastDateTimeTypeName;
     dataContract.PlannedDepartureDateTime   = dalFlightsWithBookingInformation.PlannedDepartureDateTime;
     dataContract.EstimatedDepartureDateTime = dalFlightsWithBookingInformation.EstimatedDepartureDateTime;
 }