Ejemplo n.º 1
0
        // fetch by Primary key into current object
        // links:
        //  docLink: http://sql2x.org/documentationLink/bbab4791-c9e7-49bf-90d5-fca19b1fedaa
        // parameters:
        //  defaultIssueId: primary key of table default_issue
        public CrudeDefaultIssueContract FetchByDefaultIssueId(System.Guid defaultIssueId)
        {
            var dataAccessLayer = new CrudeDefaultIssueData();
            var contract        = new CrudeDefaultIssueContract();

            dataAccessLayer.FetchByDefaultIssueId(defaultIssueId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }
Ejemplo 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/fdcc33b4-08f1-43c3-ae28-95fbf029c3bd
        // parameters:
        //  CrudeDefaultIssueData: primary key of table CrudeDefaultIssueData
        public CrudeDefaultIssueModel FetchByDefaultIssueId(System.Guid defaultIssueId)
        {
            var dataAccessLayer = new CrudeDefaultIssueData();
            var model           = new CrudeDefaultIssueModel();

            dataAccessLayer.FetchByDefaultIssueId(defaultIssueId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }