// 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:
        //  CrudeFinancialSpecialServiceData: primary key of table CrudeFinancialSpecialServiceData
        public CrudeFinancialSpecialServiceModel FetchByFinancialSpecialServiceId(System.Guid financialSpecialServiceId)
        {
            var dataAccessLayer = new CrudeFinancialSpecialServiceData();
            var model           = new CrudeFinancialSpecialServiceModel();

            dataAccessLayer.FetchByFinancialSpecialServiceId(financialSpecialServiceId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
Beispiel #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:
        //  financialSpecialServiceId: primary key of table financial_special_service
        public CrudeFinancialSpecialServiceContract FetchByFinancialSpecialServiceId(System.Guid financialSpecialServiceId)
        {
            var dataAccessLayer = new CrudeFinancialSpecialServiceData();
            var contract        = new CrudeFinancialSpecialServiceContract();

            dataAccessLayer.FetchByFinancialSpecialServiceId(financialSpecialServiceId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }