DefaultExecutionStrategy.Execute Method

 

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodExecute(Action)

Executes the specified operation once.

System_CAPS_pubmethodExecute<TResult>(Func<TResult>)

Executes the specified operation once and returns the result.


DefaultExecutionStrategy.Execute Method (Action)

Executes the specified operation once.

public void Execute(
	Action operation
)

Parameters

operation
Type: System.Action

A delegate representing an executable operation that doesn't return any results.


DefaultExecutionStrategy.Execute<TResult> Method (Func<TResult>)

Executes the specified operation once and returns the result.

public TResult Execute<TResult>(
	Func<TResult> operation
)

Parameters

operation
Type: System.Func<TResult>

A delegate representing an executable operation that returns the result of type TResult.

Return Value

Type: TResult

The result from the operation.

Type Parameters

TResult

The return type of operation.