// 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: // aircraftDocumentId: primary key of table aircraft_document public CrudeAircraftDocumentContract FetchByAircraftDocumentId(System.Guid aircraftDocumentId) { var dataAccessLayer = new CrudeAircraftDocumentData(); var contract = new CrudeAircraftDocumentContract(); dataAccessLayer.FetchByAircraftDocumentId(aircraftDocumentId); DataToContract(dataAccessLayer, contract); return(contract); }
// 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: // CrudeAircraftDocumentData: primary key of table CrudeAircraftDocumentData public CrudeAircraftDocumentModel FetchByAircraftDocumentId(System.Guid aircraftDocumentId) { var dataAccessLayer = new CrudeAircraftDocumentData(); var model = new CrudeAircraftDocumentModel(); dataAccessLayer.FetchByAircraftDocumentId(aircraftDocumentId); DataToModel(dataAccessLayer, model); return(model); }