Table of Contents

Interface IEntityViewRepository

Namespace
GroupeIsa.Neos.Application.Persistence
Assembly
GroupeIsa.Neos.Application.Abstractions.dll

Provides the functionalities of an entity view persistence.

public interface IEntityViewRepository

Properties

EntityName

Gets the entity name.

string? EntityName { get; }

Property Value

string

EntityViewName

Gets the entity view name.

string EntityViewName { get; }

Property Value

string

EntityViewType

Gets the entity view type.

Type EntityViewType { get; }

Property Value

Type

KeyPropertyNames

Gets the names of the properties of the key.

IReadOnlyList<string> KeyPropertyNames { get; }

Property Value

IReadOnlyList<string>

Methods

AddFromExternalSourceAsync(IEntityView)

Adds an item from an external source.

Task<IEntityView> AddFromExternalSourceAsync(IEntityView entityView)

Parameters

entityView IEntityView

The entity view item.

Returns

Task<IEntityView>

The added entity view item.

CreateKey(params object[])

Creates a key from key values.

object CreateKey(params object[] keyValues)

Parameters

keyValues object[]

The key values (in the key order).

Returns

object

The key.

GetFileAsync(object, string)

Gets a file.

Task<IFileResult> GetFileAsync(object key, string propertyName)

Parameters

key object

The key.

propertyName string

The file property name.

Returns

Task<IFileResult>

The file.

GetKeyValues(object)

Gets key values from a key.

object[] GetKeyValues(object key)

Parameters

key object

The key.

Returns

object[]

The key values (in the key order).

GetListAsync(Func<IQueryable, IQueryable>)

Gets entity view items.

Task<IReadOnlyList<IEntityView>> GetListAsync(Func<IQueryable, IQueryable> queryCustomization)

Parameters

queryCustomization Func<IQueryable, IQueryable>

The query customization.

Returns

Task<IReadOnlyList<IEntityView>>

The entity view items.

GetTransformedListAsync(Func<IQueryable, IQueryable>, Func<IQueryable, IQueryable>)

Gets transformed items.

Task<IReadOnlyList<object>> GetTransformedListAsync(Func<IQueryable, IQueryable> queryTransformation, Func<IQueryable, IQueryable> queryCustomizationBeforeTransformation)

Parameters

queryTransformation Func<IQueryable, IQueryable>

The query transformation.

queryCustomizationBeforeTransformation Func<IQueryable, IQueryable>

The query customization before the transformation.

Returns

Task<IReadOnlyList<object>>

The entity view items.