コード例 #1
0
        // copy all rows from a List of serialized data objects in CrudeCityData to a List of SOAP Contracts
        // links:
        //  docLink: http://sql2x.org/documentationLink/9204c68e-93b8-4c77-af3c-3181985ff75f
        public List <CrudeCityContract> FetchAll()
        {
            var list = new List <CrudeCityContract>();
            List <CrudeCityData> dataList = CrudeCityData.FetchAll();

            foreach (CrudeCityData crudeCity in dataList)
            {
                var contract = new CrudeCityContract();
                DataToContract(crudeCity, contract);
                list.Add(contract);
            }

            return(list);
        }
コード例 #2
0
        // copy all rows from a List of serialized data objects in CrudeCityData to a List of SOAP Contracts
        // links:
        //  docLink: http://sql2x.org/documentationLink/3d3e60c3-69e4-43d6-8bd5-14a67a6ecf58
        public List <CrudeCityModel> FetchAll()
        {
            var list = new List <CrudeCityModel>();
            List <CrudeCityData> dataList = CrudeCityData.FetchAll();

            foreach (CrudeCityData crudeCityBusiness in dataList)
            {
                var model = new CrudeCityModel();
                DataToModel(crudeCityBusiness, model);
                list.Add(model);
            }

            return(list);
        }