Table of Contents

Interface ISaveRuleArguments<TEntity>

Namespace
GroupeIsa.Neos.Domain.Rules.EventRules
Assembly
GroupeIsa.Neos.Domain.Abstractions.dll

Provides the basic functionalities of save rules arguments.

public interface ISaveRuleArguments<out TEntity> : IContextRuleArguments where TEntity : BusinessEntity

Type Parameters

TEntity

The entity type.

Inherited Members

Properties

CreatedAndModifiedItems

Gets the created and modified items regrouped in the same collection.

IReadOnlyList<out TEntity> CreatedAndModifiedItems { get; }

Property Value

IReadOnlyList<TEntity>

CreatedItems

Gets the created items.

IReadOnlyList<out TEntity> CreatedItems { get; }

Property Value

IReadOnlyList<TEntity>

DeletedItems

Gets the deleted items.

IReadOnlyList<out TEntity> DeletedItems { get; }

Property Value

IReadOnlyList<TEntity>

ModifiedItems

Gets the modified items.

IReadOnlyList<out TEntity> ModifiedItems { get; }

Property Value

IReadOnlyList<TEntity>

Methods

GetRepository(BusinessEntity)

Gets the repository handling the given entity (resolves base/abstract types).

IRepository? GetRepository(BusinessEntity entity)

Parameters

entity BusinessEntity

The entity instance.

Returns

IRepository

The repository, or null when none is registered.

Remarks

Default interface implementation so adding this member does not break external implementers. The framework arguments override it to resolve the concrete repository.