Beispiel #1
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:
        //  CrudeBookingEventData: primary key of table CrudeBookingEventData
        public CrudeBookingEventModel FetchByBookingEventId(System.Guid bookingEventId)
        {
            var dataAccessLayer = new CrudeBookingEventData();
            var model           = new CrudeBookingEventModel();

            dataAccessLayer.FetchByBookingEventId(bookingEventId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
Beispiel #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/bbab4791-c9e7-49bf-90d5-fca19b1fedaa
        // parameters:
        //  bookingEventId: primary key of table booking_event
        public CrudeBookingEventContract FetchByBookingEventId(System.Guid bookingEventId)
        {
            var dataAccessLayer = new CrudeBookingEventData();
            var contract        = new CrudeBookingEventContract();

            dataAccessLayer.FetchByBookingEventId(bookingEventId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }