public T QueryIdRecords <T, U>(QueryRecordType queryRecordType) where T : RecordResult <U> where U : QueryResultRecordType { try { return(this.ExecuteQuery <T, QueryResultRecordsType, U>(this._client.VCloudApiURL + this.BuildQuery(queryRecordType.Value()) + this.BuildQuery(FormatType.ID_RECORD_VIEW))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public RecordResult <U> QueryRecords <T, U>( QueryRecordType queryRecordType, QueryParams <T> queryParams) where T : QueryField where U : QueryResultRecordType { try { return(this.ExecuteQuery <RecordResult <U>, QueryResultRecordsType, U>(this._client.VCloudApiURL + this.BuildQuery(queryRecordType.Value()) + this.BuildQuery <T>(queryParams) + this.BuildQuery(FormatType.RECORD_VIEW))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
/// <summary> /// Visits a <see cref="QueryRecordType"/>. /// </summary> /// <param name="type">Query type being visited.</param> /// <returns>The result of visiting this query type.</returns> public ComparisonResult Visit(QueryRecordType type) { throw new TaupoNotSupportedException("Comparison of query record value is not supported."); }
/// <summary> /// Visits a <see cref="QueryRecordType"/>. /// </summary> /// <param name="type">Query type being visited.</param> /// <returns>The result of visiting this query type.</returns> public ComparisonResult Visit(QueryRecordType type) { return(this.parent.CompareRecord((QueryRecordValue)this.expectedValue, this.actualValue, this.path, this.shouldThrow)); }
/// <summary> /// Creates a QueryValue of a given type. /// </summary> /// <param name="type">Type of the QueryValue that will be generated.</param> /// <returns>QueryValue representing the provided object.</returns> public virtual QueryValue Visit(QueryRecordType type) { throw new TaupoNotSupportedException("Not supported by generic converter. Use Entity Framework specific implementation."); }