// 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: // CrudeFlightScheduleSegmentRuleData: primary key of table CrudeFlightScheduleSegmentRuleData public CrudeFlightScheduleSegmentRuleModel FetchByFlightScheduleSegmentRuleId(System.Guid flightScheduleSegmentRuleId) { var dataAccessLayer = new CrudeFlightScheduleSegmentRuleData(); var model = new CrudeFlightScheduleSegmentRuleModel(); dataAccessLayer.FetchByFlightScheduleSegmentRuleId(flightScheduleSegmentRuleId); 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: // flightScheduleSegmentRuleId: primary key of table flight_schedule_segment_rule public CrudeFlightScheduleSegmentRuleContract FetchByFlightScheduleSegmentRuleId(System.Guid flightScheduleSegmentRuleId) { var dataAccessLayer = new CrudeFlightScheduleSegmentRuleData(); var contract = new CrudeFlightScheduleSegmentRuleContract(); dataAccessLayer.FetchByFlightScheduleSegmentRuleId(flightScheduleSegmentRuleId); DataToContract(dataAccessLayer, contract); return(contract); }