DataResult
Container for a database operation result, which can end in success or failure. Replaces the exception mechanism, forcing explicit handling of both cases.
Parameters
T
Data type in case of success.
Inheritors
Functions
Link copied to clipboard
Returns the value if the result is Success, or throws an exception if it is Failure.
Link copied to clipboard
Transforms the value inside DataResult.Success, leaving DataResult.Failure unchanged.
Link copied to clipboard
Executes an action if the result is Failure, without modifying the original error.
Link copied to clipboard
Executes an action if the result is Success, without modifying the original value.