Table of Contents

Class OperationContainer

Namespace
JsonApiDotNetCore.Resources
Assembly
JsonApiDotNetCore.dll

Represents a write operation on a JSON:API resource.

[PublicAPI]
public sealed class OperationContainer
Inheritance
OperationContainer
Inherited Members

Constructors

OperationContainer(IIdentifiable, ITargetedFields, IJsonApiRequest)

public OperationContainer(IIdentifiable resource, ITargetedFields targetedFields, IJsonApiRequest request)

Parameters

resource IIdentifiable
targetedFields ITargetedFields
request IJsonApiRequest

Properties

Request

public IJsonApiRequest Request { get; }

Property Value

IJsonApiRequest

Resource

public IIdentifiable Resource { get; }

Property Value

IIdentifiable

TargetedFields

public ITargetedFields TargetedFields { get; }

Property Value

ITargetedFields

Methods

GetSecondaryResources()

public ISet<IIdentifiable> GetSecondaryResources()

Returns

ISet<IIdentifiable>

SetTransactionId(string)

public void SetTransactionId(string transactionId)

Parameters

transactionId string

WithResource(IIdentifiable)

public OperationContainer WithResource(IIdentifiable resource)

Parameters

resource IIdentifiable

Returns

OperationContainer