Class GraphQlArchivExtensions
Archive operations for GraphQL entities, matching the COM MoveToArchiv / MoveFromArchiv API.
public static class GraphQlArchivExtensions
- Inheritance
-
objectGraphQlArchivExtensions
Methods
MoveFromArchiv(IGraphQlArchiv, bool)
Restores the archived row to its source table.
public static bool MoveFromArchiv(this IGraphQlArchiv entity, bool allowOverwrite = false)
Parameters
entityIGraphQlArchivallowOverwritebool
Returns
Exceptions
- InvalidOperationException
When the entity is not attached to a GraphQL context.
MoveFromArchivAsync(IGraphQlArchiv, bool, CancellationToken)
Restores the archived row to its source table.
public static Task<bool> MoveFromArchivAsync(this IGraphQlArchiv entity, bool allowOverwrite = false, CancellationToken cancellationToken = default)
Parameters
entityIGraphQlArchivallowOverwriteboolcancellationTokenCancellationToken
Returns
Exceptions
- InvalidOperationException
When the entity is not attached to a GraphQL context.
MoveToArchiv(IGraphQlHasArchiv)
Moves the entity's row to its archive table.
public static bool MoveToArchiv(this IGraphQlHasArchiv entity)
Parameters
entityIGraphQlHasArchiv
Returns
Exceptions
- InvalidOperationException
When the entity is not attached to a GraphQL context.
MoveToArchivAsync(IGraphQlHasArchiv, CancellationToken)
Moves the entity's row to its archive table.
public static Task<bool> MoveToArchivAsync(this IGraphQlHasArchiv entity, CancellationToken cancellationToken = default)
Parameters
entityIGraphQlHasArchivcancellationTokenCancellationToken
Returns
Exceptions
- InvalidOperationException
When the entity is not attached to a GraphQL context.