Class NpgsqlExecutionStrategy
This is an internal API that supports the Entity Framework Core infrastructure and not subject to
the same compatibility standards as public APIs. It may be changed or removed without notice in
any release. You should only use it directly in your code with extreme caution and knowing that
doing so can result in application failures when updating to a new Entity Framework Core release.
Inheritance
object
NpgsqlExecutionStrategy
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public class NpgsqlExecutionStrategy : IExecutionStrategy
Constructors
|
Improve this Doc
View Source
NpgsqlExecutionStrategy(ExecutionStrategyDependencies)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to
the same compatibility standards as public APIs. It may be changed or removed without notice in
any release. You should only use it directly in your code with extreme caution and knowing that
doing so can result in application failures when updating to a new Entity Framework Core release.
Declaration
public NpgsqlExecutionStrategy(ExecutionStrategyDependencies dependencies)
Parameters
Type |
Name |
Description |
ExecutionStrategyDependencies |
dependencies |
|
Properties
|
Improve this Doc
View Source
RetriesOnFailure
This is an internal API that supports the Entity Framework Core infrastructure and not subject to
the same compatibility standards as public APIs. It may be changed or removed without notice in
any release. You should only use it directly in your code with extreme caution and knowing that
doing so can result in application failures when updating to a new Entity Framework Core release.
Declaration
public virtual bool RetriesOnFailure { get; }
Property Value
Methods
|
Improve this Doc
View Source
Execute<TState, TResult>(TState, Func<DbContext, TState, TResult>, Func<DbContext, TState, ExecutionResult<TResult>>?)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to
the same compatibility standards as public APIs. It may be changed or removed without notice in
any release. You should only use it directly in your code with extreme caution and knowing that
doing so can result in application failures when updating to a new Entity Framework Core release.
Declaration
public virtual TResult Execute<TState, TResult>(TState state, Func<DbContext, TState, TResult> operation, Func<DbContext, TState, ExecutionResult<TResult>>? verifySucceeded)
Parameters
Type |
Name |
Description |
TState |
state |
|
Func<, , ><DbContext, TState, TResult> |
operation |
|
Func<, , ><DbContext, TState, ExecutionResult<TResult>>? |
verifySucceeded |
|
Returns
Type Parameters
Name |
Description |
TState |
|
TResult |
|
|
Improve this Doc
View Source
ExecuteAsync<TState, TResult>(TState, Func<DbContext, TState, CancellationToken, Task<TResult>>, Func<DbContext, TState, CancellationToken, Task<ExecutionResult<TResult>>>?, CancellationToken)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to
the same compatibility standards as public APIs. It may be changed or removed without notice in
any release. You should only use it directly in your code with extreme caution and knowing that
doing so can result in application failures when updating to a new Entity Framework Core release.
Declaration
public virtual Task<TResult> ExecuteAsync<TState, TResult>(TState state, Func<DbContext, TState, CancellationToken, Task<TResult>> operation, Func<DbContext, TState, CancellationToken, Task<ExecutionResult<TResult>>>? verifySucceeded, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
TState |
state |
|
Func<, , , ><DbContext, TState, CancellationToken, Task<><TResult>> |
operation |
|
Func<, , , ><DbContext, TState, CancellationToken, Task<><ExecutionResult<TResult>>>? |
verifySucceeded |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<><TResult> |
|
Type Parameters
Name |
Description |
TState |
|
TResult |
|