// 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: // CrudeFlightSegmentEventData: primary key of table CrudeFlightSegmentEventData public CrudeFlightSegmentEventModel FetchByFlightSegmentEventId(System.Guid flightSegmentEventId) { var dataAccessLayer = new CrudeFlightSegmentEventData(); var model = new CrudeFlightSegmentEventModel(); dataAccessLayer.FetchByFlightSegmentEventId(flightSegmentEventId); DataToModel(dataAccessLayer, model); return(model); }
// 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: // flightSegmentEventId: primary key of table flight_segment_event public CrudeFlightSegmentEventContract FetchByFlightSegmentEventId(System.Guid flightSegmentEventId) { var dataAccessLayer = new CrudeFlightSegmentEventData(); var contract = new CrudeFlightSegmentEventContract(); dataAccessLayer.FetchByFlightSegmentEventId(flightSegmentEventId); DataToContract(dataAccessLayer, contract); return(contract); }