Skip to main content

EntityRuleEngineResult<TEntity>

Namespace: Meshmakers.Octo.Runtime.Contracts.RuleEngine

Represents a result of a rule engine execution.

public record EntityRuleEngineResult<TEntity> : IEquatable<EntityRuleEngineResult<TEntity>>

Type Parameters

TEntity

Inheritance ObjectEntityRuleEngineResult<TEntity>
Implements IEquatable<EntityRuleEngineResult<TEntity>>

Properties

RtEntitiesToInsert

Returns a list of entities to create.

public List<TEntity> RtEntitiesToInsert { get; }

Property Value

List<TEntity>

RtEntitiesToUpdate

Returns a list of entities to update.

public Dictionary<RtEntityId, TEntity> RtEntitiesToUpdate { get; }

Property Value

Dictionary<RtEntityId, TEntity>

RtEntitiesToReplace

Returns a list of entities to replace.

public Dictionary<RtEntityId, TEntity> RtEntitiesToReplace { get; }

Property Value

Dictionary<RtEntityId, TEntity>

RtEntitiesToDelete

Returns a list of entities to delete.

public List<RtEntityId> RtEntitiesToDelete { get; }

Property Value

List<RtEntityId>

Constructors

EntityRuleEngineResult()

Creates a new instance of EntityRuleEngineResult<TEntity>.

public EntityRuleEngineResult()

EntityRuleEngineResult(List<TEntity>, Dictionary<RtEntityId, TEntity>, Dictionary<RtEntityId, TEntity>, List<RtEntityId>)

Creates a new instance of EntityRuleEngineResult<TEntity>.

public EntityRuleEngineResult(List<TEntity> rtEntitiesToInsert, Dictionary<RtEntityId, TEntity> rtEntitiesToUpdate, Dictionary<RtEntityId, TEntity> rtEntitiesToReplace, List<RtEntityId> rtEntitiesToDelete)

Parameters

rtEntitiesToInsert List<TEntity>
List of entities to create.

rtEntitiesToUpdate Dictionary<RtEntityId, TEntity>
List of entities to update.

rtEntitiesToReplace Dictionary<RtEntityId, TEntity>
List of entities to replace.

rtEntitiesToDelete List<RtEntityId>
List of entities to delete.