Class ExecutionResult<TResult>
- Namespace
- Microsoft.EntityFrameworkCore.Storage
- Assembly
- Microsoft.EntityFrameworkCore.dll
Represents the execution state of an operation.
public class ExecutionResult<TResult>
Type Parameters
TResult
The type of the result.
- Inheritance
-
ExecutionResult<TResult>
- Inherited Members
Remarks
See Connection resiliency and database retries for more information and examples.
Constructors
ExecutionResult(bool, TResult)
Creates a new instance of ExecutionResult<TResult>.
public ExecutionResult(bool successful, TResult result)
Parameters
successful
booltrue if the operation succeeded.
result
TResultThe result of the operation if successful.
Properties
IsSuccessful
Indicates whether the operation succeeded.
public virtual bool IsSuccessful { get; }
Property Value
Result
The result of the operation if successful.
public virtual TResult Result { get; }
Property Value
- TResult