Table of Contents

Class GraphQlDataSetEntity

Namespace
BpNexT.NET.GraphQL.Models
Assembly
BpNexT.NET.Contracts.GraphQL.dll

GraphQL-backed entity base class for tables with full mutation support (create/modify and delete). The implementations are provided by the BpNexT.NET.GraphQL runtime assembly.

public abstract class GraphQlDataSetEntity : GraphQlReadOnlyDataSetEntity, IDisposable, IGraphQlEntity, IGraphQlSavable, IGraphQlRemovable, IDataSetEntity
Inheritance
object
GraphQlDataSetEntity
Implements
Inherited Members
Extension Methods

Methods

Remove()

Deletes the entity via GraphQL mutation.

public void Remove()

Exceptions

InvalidOperationException

Thrown when the entity is not attached to a GraphQL context or the runtime is not loaded.

RemoveAsync(CancellationToken)

Deletes the entity via GraphQL mutation.

public Task RemoveAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Token to cancel the request.

Returns

Task

Exceptions

InvalidOperationException

Thrown when the entity is not attached to a GraphQL context or the runtime is not loaded.

Save()

Persists the entity via GraphQL mutation.

public void Save()

Exceptions

InvalidOperationException

Thrown when the entity is not attached to a GraphQL context or the runtime is not loaded.

SaveAsync(CancellationToken)

Persists the entity via GraphQL mutation.

public Task SaveAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Token to cancel the request.

Returns

Task

Exceptions

InvalidOperationException

Thrown when the entity is not attached to a GraphQL context or the runtime is not loaded.