Esempio n. 1
0
        public LASLoader(IWebHostEnvironment env)
        {
            _dbConn             = new DbUtilities();
            _nullRepresentation = "-999.25";

            try
            {
                string contentRootPath = env.ContentRootPath;
                string jsonFile        = contentRootPath + @"\DataBase\ReferenceTables.json";
                string json            = System.IO.File.ReadAllText(jsonFile);
                _references = JsonConvert.DeserializeObject <List <ReferenceTable> >(json);
                jsonFile    = contentRootPath + @"\DataBase\PPDMDataAccess.json";
                json        = System.IO.File.ReadAllText(jsonFile);
                _dataDef    = JsonConvert.DeserializeObject <List <DataAccessDef> >(json);
            }
            catch (Exception ex)
            {
                Exception error = new Exception("Read refernce table file error: ", ex);
                throw error;
            }
        }
Esempio n. 2
0
 public IndexBuilder()
 {
     _dbConn = new DbUtilities();
 }