IEntityRuleEngine
Namespace: Meshmakers.Octo.Runtime.Contracts.RuleEngine
Interface of the runtime entity validation engine
public interface IEntityRuleEngine
Methods
ValidateAsync<TEntity>(String, IReadOnlyList<IEntityUpdateInfo<TEntity>>, IOriginFileResolver, OperationResult)
Validates the given update records to the existing repository
Task<EntityRuleEngineResult<TEntity>> ValidateAsync<TEntity>(string tenantId, IReadOnlyList<IEntityUpdateInfo<TEntity>> entityUpdateInfos, IOriginFileResolver originFileResolver, OperationResult operationResult)
Type Parameters
TEntity
Parameters
tenantId String
The tenant the chance is applied
entityUpdateInfos IReadOnlyList<IEntityUpdateInfo<TEntity>>
A list of entity transactions that should be applied to the existing repository.
originFileResolver IOriginFileResolver
Represents the origin file resolver
operationResult OperationResult
Represents the operation result with validation messages