Exemplo n.º 1
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:
        //  TitleName: key of table CrudeTitleRefData
        public CrudeTitleRefModel FetchByTitleName(string titleName)
        {
            var dataAccessLayer = new CrudeTitleRefData();
            var model           = new CrudeTitleRefModel();

            dataAccessLayer.FetchByTitleName(titleName);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
Exemplo n.º 2
0
        public CrudeTitleRefContract FetchByTitleName(string titleName)
        {
            var dataAccessLayer = new CrudeTitleRefData();
            var contract        = new CrudeTitleRefContract();

            dataAccessLayer.FetchByTitleName(titleName);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }