Esempio n. 1
0
        public static T GetFromMap <T>(string key, string field = DEFAULT_FIELD_NAME)
        {
            string fullKey = field.ToUpper() + "." + key.ToUpper();

            if (PersistentObjects.ContainsKey(key, field) == false)
            {
                throw new InvalidOperationException("MAP DOES NOT CONTAIN KEY '" + key + "' in field '" + field + "'.");
            }
            else
            {
                return((T)PersistentObjects.ObjectStore[fullKey].Obj);
            }
        }
Esempio n. 2
0
        public static DataTable QueryDataTable(string sql, string folder)
        {
            string newSql = PersistentObjects.ParseSqlStringToCsvStringAndStoreTables(sql);

            return(QueryCSVAndStoreAsDataTable(newSql));
        }