Class GraphQlDataSetEntity
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
-
objectGraphQlDataSetEntity
- 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
cancellationTokenCancellationTokenToken to cancel the request.
Returns
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
cancellationTokenCancellationTokenToken to cancel the request.
Returns
Exceptions
- InvalidOperationException
Thrown when the entity is not attached to a GraphQL context or the runtime is not loaded.