public static object ToQueryName(string queryKey) { return(QueryNames.GetOrThrow(queryKey, "QueryName with unique name {0} not found")); }
public static object ToQueryName(this QueryEntity query) { return(QueryNames.GetOrThrow(query.Key, "QueryName with key {0} not found")); }