Skip to content

IOperationContext

Namespace: MJCZone.DapperMatic.AspNetCore

Assembly: MJCZone.DapperMatic.AspNetCore

Summary

Interface for DapperMatic operation context.

abstract public

Note: This is an interface that defines a contract. Look for implementing classes in the same or related namespaces.

Contents

Methods (2) | Properties (18)

Methods

GetRequest

Gets the request body as a specific type.

csharp
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.

csharp
string? GetQueryParameter(string key)

Parameters

  • key (string) - The query parameter key.

Returns

Type: string?

The query parameter value, or null if not found.

Properties

User

Gets or sets the user's claims principal.

Type: ClaimsPrincipal?

Operation

Gets or sets the operation being performed (e.g., "datasources/get", "datasources/post").

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 as a case-insensitive dictionary, if any.

Type: Dictionary<string, StringValues>

RouteValues

Gets or sets the route values as a case-insensitive dictionary, 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>?