Interface IDocumentDataRequest<TConnection, TResult>
Represents a document store data request that can be executed against a document database connection.
public interface IDocumentDataRequest<in TConnection, TResult>
Type Parameters
TConnectionThe type of the document database connection.
TResultThe type of the result returned by the request.
- Extension Methods
Properties
CollectionName
Gets the collection name for the document operation.
string CollectionName { get; }
Property Value
- string
The collection name for the document operation.
OperationType
Gets the operation type (e.g., "Insert", "Find", "Update", "Delete", "Aggregate").
string OperationType { get; }
Property Value
- string
The operation type (e.g., "Insert", "Find", "Update", "Delete", "Aggregate").
Options
Gets optional operation-specific options (e.g., write concerns, read preferences).
IReadOnlyDictionary<string, object>? Options { get; }
Property Value
- IReadOnlyDictionary<string, object>
Optional operation-specific options (e.g., write concerns, read preferences).
Parameters
Gets the operation parameters as a read-only dictionary.
IReadOnlyDictionary<string, object> Parameters { get; }
Property Value
- IReadOnlyDictionary<string, object>
The operation parameters as a read-only dictionary.
ResolveAsync
Gets the function responsible for resolving the request result using the provided connection.
Func<in TConnection, Task<TResult>> ResolveAsync { get; }