// 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:
        //  CrudeServiceHotelImageData: primary key of table CrudeServiceHotelImageData
        public CrudeServiceHotelImageModel FetchByServiceHotelImageId(System.Guid serviceHotelImageId)
        {
            var dataAccessLayer = new CrudeServiceHotelImageData();
            var model           = new CrudeServiceHotelImageModel();

            dataAccessLayer.FetchByServiceHotelImageId(serviceHotelImageId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
Esempio 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/bbab4791-c9e7-49bf-90d5-fca19b1fedaa
        // parameters:
        //  serviceHotelImageId: primary key of table service_hotel_image
        public CrudeServiceHotelImageContract FetchByServiceHotelImageId(System.Guid serviceHotelImageId)
        {
            var dataAccessLayer = new CrudeServiceHotelImageData();
            var contract        = new CrudeServiceHotelImageContract();

            dataAccessLayer.FetchByServiceHotelImageId(serviceHotelImageId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }