// Update -------------------------------- /// <summary> /// /// </summary> /// <param name="name"></param> /// <param name="tryMode"></param> /// <returns></returns> public IDbStoredQuery Query(string name, bool tryMode = true) { IDbStoredQuery query; try { if (tryMode) { QueryDictionary.TryGetValue(name, out query); } else { query = QueryDictionary[name]?.Clone <DbStoredQuery>(); } } catch (KeyNotFoundException) { throw new DbModelException("Unknown query (name='" + name + "')"); } return(query); }
public bool TryGetValue(string key, out StringValues value) { return(_query.TryGetValue(key, out value)); }