Exemplo n.º 1
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:
        //  airportLinkId: primary key of table airport_link
        public CrudeAirportLinkContract FetchByAirportLinkId(System.Guid airportLinkId)
        {
            var dataAccessLayer = new CrudeAirportLinkData();
            var contract        = new CrudeAirportLinkContract();

            dataAccessLayer.FetchByAirportLinkId(airportLinkId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }
Exemplo n.º 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:
        //  CrudeAirportLinkData: primary key of table CrudeAirportLinkData
        public CrudeAirportLinkModel FetchByAirportLinkId(System.Guid airportLinkId)
        {
            var dataAccessLayer = new CrudeAirportLinkData();
            var model           = new CrudeAirportLinkModel();

            dataAccessLayer.FetchByAirportLinkId(airportLinkId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }