OperationContext
Namespace: MJCZone.DapperMatic.AspNetCore
Assembly: MJCZone.DapperMatic.AspNetCore
Summary
Context for DapperMatic operations.
Inheritance
Implemented Interfaces:
public
Contents
Constructors (1) | Methods (6) | Properties (18)
Constructors
OperationContext
OperationContext()Methods
| Method | Summary |
|---|---|
| GetRequest | Gets the request body as a specific type. |
| GetQueryParameter | Gets a query parameter value by key. |
| GetType | |
| ToString | |
| Equals | |
| GetHashCode |
GetRequest
Gets the request body as a specific type.
T? GetRequest()Returns
Type: T?
The request body as type T, or default if the cast fails.
GetQueryParameter
Gets a query parameter value by key.
string? GetQueryParameter(string key)Parameters
- key (string) - The query parameter key.
Returns
Type: string?
The query parameter value, or null if not found.
GetType
GetType()ToString
ToString()Equals
Equals()GetHashCode
GetHashCode()Properties
User
Gets or sets the user's claims principal.
Type: ClaimsPrincipal?
Operation
Gets or sets the operation being performed (e.g., "datasources/post", "tables/put").
Type: string?
DatasourceId
Gets or sets the name of the datasource being accessed, if applicable.
Type: string?
SchemaName
Gets or sets the name of the schema being accessed, if applicable.
Type: string?
TableName
Gets or sets the name of the table being accessed, if applicable.
Type: string?
ViewName
Gets or sets the name of the view being accessed, if applicable.
Type: string?
ColumnNames
Gets or sets the name of the columns being accessed, if applicable.
Type: List<string>?
IndexName
Gets or sets the name of the index being accessed, if applicable.
Type: string?
ConstraintName
Gets or sets the name of the constraint being accessed, if applicable.
Type: string?
HttpMethod
Gets or sets the HTTP method (GET, POST, etc.).
Type: string?
EndpointPath
Gets or sets the endpoint path.
Type: string?
RequestBody
Gets or sets the request payload, if any.
Type: object?
QueryParameters
Gets or sets the query parameters, if any.
Type: Dictionary<string, StringValues>
RouteValues
Gets or sets the route values, if any.
Type: Dictionary<string, string>?
HeaderValues
Gets or sets the header values as a case-insensitive dictionary, if any.
Type: Dictionary<string, string>?
IpAddress
Gets or sets the IP address of the client.
Type: string?
RequestId
Gets or sets the request ID for correlating logs.
Type: string?
Properties
Gets or sets additional properties for custom authorization logic.
Type: Dictionary<string, object>?