// 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:
        //  aircraftIdentifierId: primary key of table aircraft_identifier
        public CrudeAircraftIdentifierContract FetchByAircraftIdentifierId(System.Guid aircraftIdentifierId)
        {
            var dataAccessLayer = new CrudeAircraftIdentifierData();
            var contract        = new CrudeAircraftIdentifierContract();

            dataAccessLayer.FetchByAircraftIdentifierId(aircraftIdentifierId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }
Пример #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/fdcc33b4-08f1-43c3-ae28-95fbf029c3bd
        // parameters:
        //  CrudeAircraftIdentifierData: primary key of table CrudeAircraftIdentifierData
        public CrudeAircraftIdentifierModel FetchByAircraftIdentifierId(System.Guid aircraftIdentifierId)
        {
            var dataAccessLayer = new CrudeAircraftIdentifierData();
            var model           = new CrudeAircraftIdentifierModel();

            dataAccessLayer.FetchByAircraftIdentifierId(aircraftIdentifierId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }