Ejemplo 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);
            }
        }
Ejemplo n.º 2
0
        public static DataTable QueryDataTable(string sql, string folder)
        {
            string newSql = PersistentObjects.ParseSqlStringToCsvStringAndStoreTables(sql);

            return(QueryCSVAndStoreAsDataTable(newSql));
        }