IDbExecutionStrategy.Execute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Execute(Action) |
Executes the specified operation. |
Execute<TResult>(Func<TResult>) |
Executes the specified operation and returns the result. |
Execute(Action)
Executes the specified operation.
public void Execute (Action operation);
abstract member Execute : Action -> unit
Public Sub Execute (operation As Action)
Parameters
- operation
- Action
A delegate representing an executable operation that doesn't return any results.
Applies to
Execute<TResult>(Func<TResult>)
Executes the specified operation and returns the result.
public TResult Execute<TResult> (Func<TResult> operation);
abstract member Execute : Func<'Result> -> 'Result
Public Function Execute(Of TResult) (operation As Func(Of TResult)) As TResult
Type Parameters
- TResult
The return type of operation
.
Parameters
- operation
- Func<TResult>
A delegate representing an executable operation that returns the result of type TResult
.
Returns
The result from the operation.
Applies to
Entity Framework