// fetch by Search key into current object
        // links:
        //  crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete
        //  docLink: http://sql2x.org/documentationLink/ad2dd952-e3ec-471a-9e34-f5fc965b8b37
        // parameters:
        //  CommandName: key of table CrudeDefaultPerformanceIssueData
        public CrudeDefaultPerformanceIssueModel FetchByCommandName(string commandName)
        {
            var dataAccessLayer = new CrudeDefaultPerformanceIssueData();
            var model           = new CrudeDefaultPerformanceIssueModel();

            dataAccessLayer.FetchByCommandName(commandName);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
Example #2
0
        public CrudeDefaultPerformanceIssueContract FetchByCommandName(string commandName)
        {
            var dataAccessLayer = new CrudeDefaultPerformanceIssueData();
            var contract        = new CrudeDefaultPerformanceIssueContract();

            dataAccessLayer.FetchByCommandName(commandName);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }