Class QueryResult
- Namespace
- IntentSharp.Data
- Assembly
- IntentSharp.dll
Everything that came back from a query.
public sealed class QueryResult
- Inheritance
-
objectQueryResult
- Inherited Members
-
object.Equals(object)object.Equals(object, object)object.GetHashCode()object.GetType()object.ReferenceEquals(object, object)object.ToString()
- Extension Methods
Constructors
- QueryResult()
Creates an empty result of a statement that did not run: an empty plan and safety report, no rows, and no planning result.
Properties
- Elapsed
Wall-clock time of the whole operation, planning included.
- Executed
True when the statement ran against the database; false for a dry run.
- Planning
The model call that produced the plan, with its attempts, issues and token usage. For a plan passed to ExecutePlanAsync(QueryPlan, CancellationToken) it is a successful result with no attempts.
- Rows
The rows a read returned, each mapping column names (ignoring case) to values, with database NULL as null. Empty for a write and for a plan that was not executed.
- RowsAffected
The number of rows a write changed, as the database reports it; 0 for a read and for a plan that was not executed.
- Safety
The safety check's report on the statement.
Methods
- As<T>()
Maps rows to
Tthrough JSON (case-insensitive property matching).