Table of Contents

Class GraphQlArchivExtensions

Namespace
BpNexT.NET.GraphQL.Mutation
Assembly
BpNexT.NET.GraphQL.dll

Archive operations for GraphQL entities, matching the COM MoveToArchiv / MoveFromArchiv API.

public static class GraphQlArchivExtensions
Inheritance
object
GraphQlArchivExtensions

Methods

MoveFromArchiv(IGraphQlArchiv, bool)

Restores the archived row to its source table.

public static bool MoveFromArchiv(this IGraphQlArchiv entity, bool allowOverwrite = false)

Parameters

entity IGraphQlArchiv
allowOverwrite bool

Returns

bool

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

entity IGraphQlArchiv
allowOverwrite bool
cancellationToken CancellationToken

Returns

Task<bool>

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

entity IGraphQlHasArchiv

Returns

bool

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

entity IGraphQlHasArchiv
cancellationToken CancellationToken

Returns

Task<bool>

Exceptions

InvalidOperationException

When the entity is not attached to a GraphQL context.