// 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:
        //  CrudeServicePackageData: primary key of table CrudeServicePackageData
        public CrudeServicePackageModel FetchByServicePackageId(System.Guid servicePackageId) {
            var dataAccessLayer = new CrudeServicePackageData();
            var model = new CrudeServicePackageModel();

            dataAccessLayer.FetchByServicePackageId(servicePackageId);
            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:
        //  servicePackageId: primary key of table service_package
        public CrudeServicePackageContract FetchByServicePackageId(System.Guid servicePackageId)
        {
            var dataAccessLayer = new CrudeServicePackageData();
            var contract        = new CrudeServicePackageContract();

            dataAccessLayer.FetchByServicePackageId(servicePackageId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }