// 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:
        //  CrudeAirportFacilityData: primary key of table CrudeAirportFacilityData
        public CrudeAirportFacilityModel FetchByAirportFacilityId(System.Guid airportFacilityId)
        {
            var dataAccessLayer = new CrudeAirportFacilityData();
            var model           = new CrudeAirportFacilityModel();

            dataAccessLayer.FetchByAirportFacilityId(airportFacilityId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
Пример #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/bbab4791-c9e7-49bf-90d5-fca19b1fedaa
        // parameters:
        //  airportFacilityId: primary key of table airport_facility
        public CrudeAirportFacilityContract FetchByAirportFacilityId(System.Guid airportFacilityId)
        {
            var dataAccessLayer = new CrudeAirportFacilityData();
            var contract        = new CrudeAirportFacilityContract();

            dataAccessLayer.FetchByAirportFacilityId(airportFacilityId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }