コード例 #1
0
        public CrudeNationalityRefContract FetchByNationalityName(string nationalityName)
        {
            var dataAccessLayer = new CrudeNationalityRefData();
            var contract        = new CrudeNationalityRefContract();

            dataAccessLayer.FetchByNationalityName(nationalityName);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }
コード例 #2
0
        // 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:
        //  NationalityName: key of table CrudeNationalityRefData
        public CrudeNationalityRefModel FetchByNationalityName(string nationalityName)
        {
            var dataAccessLayer = new CrudeNationalityRefData();
            var model           = new CrudeNationalityRefModel();

            dataAccessLayer.FetchByNationalityName(nationalityName);
            DataToModel(dataAccessLayer, model);

            return(model);
        }