// 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: // CrudeAirportTypeRefData: primary key of table CrudeAirportTypeRefData public CrudeAirportTypeRefModel FetchByAirportTypeRcd(string airportTypeRcd) { var dataAccessLayer = new CrudeAirportTypeRefData(); var model = new CrudeAirportTypeRefModel(); dataAccessLayer.FetchByAirportTypeRcd(airportTypeRcd); 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: // airportTypeRcd: primary key of table airport_type_ref public CrudeAirportTypeRefContract FetchByAirportTypeRcd(string airportTypeRcd) { var dataAccessLayer = new CrudeAirportTypeRefData(); var contract = new CrudeAirportTypeRefContract(); dataAccessLayer.FetchByAirportTypeRcd(airportTypeRcd); DataToContract(dataAccessLayer, contract); return(contract); }