Ejemplo n.º 1
0
        /// <summary>
        ///  This Method takes the input path of StateCode CSV File and give to the LoadData Method
        /// </summary>
        /// <param name="csvFilePath">parameter contains the path of India StateCode CSV File</param>
        /// <returns>It returns the LoadedData in List</returns>
        public List <CensusDAO> LoadIndiaStateCodeData(string csvFilePath)
        {
            DataTable   csvStateCodeData = new DataTable();
            IcsvBuilder csvBuilder       = CSVBuilderFactory.CreateCSVBuilder();

            csvStateCodeData = csvBuilder.LoadData(csvStateCodeData, csvFilePath);
            this.censusList  = ConvertToList.IndiaStateDataInList(csvStateCodeData, this.censusList);
            return(this.censusList);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// This Method takes the input path of US Census CSV File and give to the LoadData Method
        /// </summary>
        /// <param name="csvFilePath">parameter contains the path of US Census CSV File</param>
        /// <returns>It returns the LoadedData in DataTable format</returns>
        public List <CensusDAO> LoadUSCensusData(string csvFilePath)
        {
            DataTable   unitedStateCensusData = new DataTable();
            IcsvBuilder csvBuilder            = CSVBuilderFactory.CreateCSVBuilder();

            unitedStateCensusData      = csvBuilder.LoadData(unitedStateCensusData, csvFilePath);
            this.unitedStateCensusList = ConvertToList.USCensusDataInList(unitedStateCensusData, this.unitedStateCensusList);
            return(this.unitedStateCensusList);
        }