TdsQueryContext Class
Provides query execution context for a TDS request.
public sealed class TdsQueryContextConstructors
| Name | Description |
|---|---|
| TdsQueryContext() |
TdsQueryContext()
TdsQueryContext.cs- Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public TdsQueryContext()No documentation is available.
Properties
| Name | Description |
|---|---|
| CommandText | Gets the SQL text for SQL batch requests, when available. |
| HasCompleteParameters | Gets a value indicating whether every parameter sent by the client was decoded. This is false when TdsQueryContext.Parameters is truncated because the client sent a parameter whose type the server cannot decode, or because the payload was malformed. Requests with incomplete parameters should be rejected rather than acted on, because the missing values are silent. |
| Parameters | Gets the decoded RPC parameters. |
| ProcedureName | Gets the RPC procedure name for RPC requests, when available. |
| RemoteEndPoint | Gets the remote endpoint of the client. |
| RequestType | Gets the type of query request. |
| TransactionId | Gets the identifier of the transaction the request runs in, or null when the connection has no active transaction. See TdsTransactionContext.TransactionId. |
| UserContext | Gets the authenticated user context associated with this query request. |
CommandText
TdsQueryContext.csHasCompleteParameters
TdsQueryContext.csGets a value indicating whether every parameter sent by the client was decoded. This is false when TdsQueryContext.Parameters is truncated because the client sent a parameter whose type the server cannot decode, or because the payload was malformed. Requests with incomplete parameters should be rejected rather than acted on, because the missing values are silent.
public bool HasCompleteParameters { get; init; }Property value
Parameters
TdsQueryContext.csGets the decoded RPC parameters.
public IReadOnlyList<TdsQueryParameter> Parameters { get; init; }Property value
ProcedureName
TdsQueryContext.csRemoteEndPoint
TdsQueryContext.csRequestType
TdsQueryContext.csGets the type of query request.
public required TdsQueryRequestType RequestType { get; init; }Property value
TransactionId
TdsQueryContext.csGets the identifier of the transaction the request runs in, or null when the connection has no active transaction. See TdsTransactionContext.TransactionId.
public long? TransactionId { get; init; }Property value
UserContext
TdsQueryContext.csGets the authenticated user context associated with this query request.
public ClaimsPrincipal? UserContext { get; init; }