Table of Contents

Interface IModelStore

Namespace
DCR.Workflow
Assembly
DCR.Workflow.dll
public interface IModelStore
Extension Methods

Methods

CreateAsync(Model)

Task<int> CreateAsync(Model model)

Parameters

model Model

Returns

Task<int>

GetAsync(int)

Task<Model> GetAsync(int id)

Parameters

id int

Returns

Task<Model>

TryWriteAsync(Model)

Attempt to write model to persistent storage

Task<Model?> TryWriteAsync(Model model)

Parameters

model Model

The model to write

Returns

Task<Model>

Null if the write succeeded, or a new model if the "model" we try to write was updated in the database since we retrieved it.