Table of Contents

Interface IRetrievedRuleArguments<TEntityView>

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

Provides the functionalities of a retrieved rule arguments.

public interface IRetrievedRuleArguments<out TEntityView> : IContextRuleArguments where TEntityView : IEntityView

Type Parameters

TEntityView

The entity view type.

Inherited Members

Properties

Items

Gets the item collection to retrieve.

IReadOnlyList<out TEntityView> Items { get; }

Property Value

IReadOnlyList<TEntityView>

Key

Gets the key if it is the retrieving of a particular record.

object? Key { get; }

Property Value

object

Examples

The following example shows how to obtain the key values from the Key property.

if (args.Key != null)
{
    object[] keyValues = _repository.GetKeyValues(args.Key);
    for (int i = 0; i < _repository.KeyPropertyNames.Count; i++)
    {
        _logger.LogInformation($"{_repository.KeyPropertyNames[i]}: {keyValues[i]}");
    }
}

// Log output: // CustomerId: 5

Parameters

Gets the query parameter collection.

IReadOnlyEntityViewParameters<out TEntityView> Parameters { get; }

Property Value

IReadOnlyEntityViewParameters<TEntityView>

Skip

Gets the number of elements to skip.

int? Skip { get; }

Property Value

int?

Top

Gets the number of elements to return.

int? Top { get; }

Property Value

int?