Example #1
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:
        //  defaultRuleId: primary key of table default_rule
        public CrudeDefaultRuleContract FetchByDefaultRuleId(System.Guid defaultRuleId)
        {
            var dataAccessLayer = new CrudeDefaultRuleData();
            var contract        = new CrudeDefaultRuleContract();

            dataAccessLayer.FetchByDefaultRuleId(defaultRuleId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }
        // 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:
        //  CrudeDefaultRuleData: primary key of table CrudeDefaultRuleData
        public CrudeDefaultRuleModel FetchByDefaultRuleId(System.Guid defaultRuleId)
        {
            var dataAccessLayer = new CrudeDefaultRuleData();
            var model           = new CrudeDefaultRuleModel();

            dataAccessLayer.FetchByDefaultRuleId(defaultRuleId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }