// fetch by Primary key into current object
        // links:
        //  crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete
        //  docLink: http://sql2x.org/documentationLink/bbab4791-c9e7-49bf-90d5-fca19b1fedaa
        // parameters:
        //  bookingPassengerBaggageId: primary key of table booking_passenger_baggage
        public CrudeBookingPassengerBaggageContract FetchByBookingPassengerBaggageId(System.Guid bookingPassengerBaggageId)
        {
            var dataAccessLayer = new CrudeBookingPassengerBaggageData();
            var contract        = new CrudeBookingPassengerBaggageContract();

            dataAccessLayer.FetchByBookingPassengerBaggageId(bookingPassengerBaggageId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }
Example #2
0
        // fetch by Primary key into current object
        // links:
        //  crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete
        //  docLink: http://sql2x.org/documentationLink/fdcc33b4-08f1-43c3-ae28-95fbf029c3bd
        // parameters:
        //  CrudeBookingPassengerBaggageData: primary key of table CrudeBookingPassengerBaggageData
        public CrudeBookingPassengerBaggageModel FetchByBookingPassengerBaggageId(System.Guid bookingPassengerBaggageId)
        {
            var dataAccessLayer = new CrudeBookingPassengerBaggageData();
            var model           = new CrudeBookingPassengerBaggageModel();

            dataAccessLayer.FetchByBookingPassengerBaggageId(bookingPassengerBaggageId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }