コード例 #1
0
        // fetch by Search key into current object
        // links:
        //  crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete
        //  docLink: http://sql2x.org/documentationLink/ad2dd952-e3ec-471a-9e34-f5fc965b8b37
        // parameters:
        //  BookingPassengerEventTypeName: key of table CrudeBookingPassengerEventTypeRefData
        public CrudeBookingPassengerEventTypeRefModel FetchByBookingPassengerEventTypeName(string bookingPassengerEventTypeName)
        {
            var dataAccessLayer = new CrudeBookingPassengerEventTypeRefData();
            var model           = new CrudeBookingPassengerEventTypeRefModel();

            dataAccessLayer.FetchByBookingPassengerEventTypeName(bookingPassengerEventTypeName);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
コード例 #2
0
        public CrudeBookingPassengerEventTypeRefContract FetchByBookingPassengerEventTypeName(string bookingPassengerEventTypeName)
        {
            var dataAccessLayer = new CrudeBookingPassengerEventTypeRefData();
            var contract        = new CrudeBookingPassengerEventTypeRefContract();

            dataAccessLayer.FetchByBookingPassengerEventTypeName(bookingPassengerEventTypeName);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }