// 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:
        //  serviceCarRentalId: primary key of table service_car_rental
        public CrudeServiceCarRentalContract FetchByServiceCarRentalId(System.Guid serviceCarRentalId)
        {
            var dataAccessLayer = new CrudeServiceCarRentalData();
            var contract        = new CrudeServiceCarRentalContract();

            dataAccessLayer.FetchByServiceCarRentalId(serviceCarRentalId);
            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:
        //  CrudeServiceCarRentalData: primary key of table CrudeServiceCarRentalData
        public CrudeServiceCarRentalModel FetchByServiceCarRentalId(System.Guid serviceCarRentalId)
        {
            var dataAccessLayer = new CrudeServiceCarRentalData();
            var model           = new CrudeServiceCarRentalModel();

            dataAccessLayer.FetchByServiceCarRentalId(serviceCarRentalId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }