Table of Contents

Interface IInternalEntityViewRepository<TEntityView>

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

Provides the internal functionalities of an entity view persistence.

public interface IInternalEntityViewRepository<TEntityView> : IEntityViewRepository<TEntityView>, IEntityViewRepository where TEntityView : class, IEntityView

Type Parameters

TEntityView

The entity view type.

Inherited Members

Methods

AddFromExternalSourceAsync(TEntityView)

Adds an item from an external source.

Task<TEntityView> AddFromExternalSourceAsync(TEntityView entityView)

Parameters

entityView TEntityView

The entity view item.

Returns

Task<TEntityView>

The added entity view item.

AddOrGetInstanceFromExternalSourceAsync(TEntityView?, TEntityView?)

Adds or gets the optional instance from an external source.

Task<TEntityView?> AddOrGetInstanceFromExternalSourceAsync(TEntityView? destination, TEntityView? source)

Parameters

destination TEntityView

The destination.

source TEntityView

The source.

Returns

Task<TEntityView>

The entity view item.

Remarks

Used to generate EntityViewRepository{TEntityView}.UpdateReferencesAsync. See GroupeIsa.Neos.Generator.ServerSolution.Application.Persistence.AllRepositories.

AddOrGetRequiredInstanceFromExternalSourceAsync(TEntityView, TEntityView)

Adds or gets the required instance from an external source.

Task<TEntityView> AddOrGetRequiredInstanceFromExternalSourceAsync(TEntityView destination, TEntityView source)

Parameters

destination TEntityView

The destination.

source TEntityView

The source.

Returns

Task<TEntityView>

The entity view item.

Remarks

Used to generate EntityViewRepository{TEntityView}.UpdateReferencesAsync. See GroupeIsa.Neos.Generator.ServerSolution.Application.Persistence.AllRepositories.

AddOrUpdateFromExternalSourceOnEditableReferenceAsync(TEntityView)

Adds or updates entity view from external source on editable reference.

Task<TEntityView> AddOrUpdateFromExternalSourceOnEditableReferenceAsync(TEntityView sourceEditableReference)

Parameters

sourceEditableReference TEntityView

The source.

Returns

Task<TEntityView>

A Task representing the asynchronous operation.

GetPagedTransformedListAsync(int, int, EntityViewParameters<TEntityView>, AdditionalDataExpressions, Func<IQueryable<TEntityView>, IQueryable<object>>, Func<IQueryable<TEntityView>, IQueryable<TEntityView>>?)

Gets paged transformed items.

Task<IPagedList<object>> GetPagedTransformedListAsync(int skip, int top, EntityViewParameters<TEntityView> parameters, AdditionalDataExpressions additionalDataExpressions, Func<IQueryable<TEntityView>, IQueryable<object>> queryTransformation, Func<IQueryable<TEntityView>, IQueryable<TEntityView>>? queryCustomizationBeforeTransformation = null)

Parameters

skip int

The number of elements to skip.

top int

The number of elements to return.

parameters EntityViewParameters<TEntityView>

Parameters.

additionalDataExpressions AdditionalDataExpressions

The expressions to retrieve additional data.

queryTransformation Func<IQueryable<TEntityView>, IQueryable<object>>

The query transformation.

queryCustomizationBeforeTransformation Func<IQueryable<TEntityView>, IQueryable<TEntityView>>

The query customization before the transformation.

Returns

Task<IPagedList<object>>

The entity view items.

ReloadAsync(TEntityView, AdditionalDataExpressions)

Reloads the entity view item.

Task<TEntityView> ReloadAsync(TEntityView entityView, AdditionalDataExpressions additionalDataExpressions)

Parameters

entityView TEntityView

The entity view item to reload.

additionalDataExpressions AdditionalDataExpressions

The expressions to retrieve additional data.

Returns

Task<TEntityView>

The reloaded entity view item.

RemoveFromCache(TEntityView)

Removes an item from the cache.

void RemoveFromCache(TEntityView entityView)

Parameters

entityView TEntityView

The item to remove.

UpdateFromExternalSourceAsync(object, TEntityView)

Finds if destination exists according to the key and updates from an external source.

Task<Result<TEntityView>> UpdateFromExternalSourceAsync(object key, TEntityView source)

Parameters

key object

The item key.

source TEntityView

The new item content.

Returns

Task<Result<TEntityView>>

true if the item was found and updated; otherwise false.

UpdateFromExternalSourceAsync(TEntityView, TEntityView)

Updates an item from an external source.

Task<TEntityView> UpdateFromExternalSourceAsync(TEntityView source, TEntityView destination)

Parameters

source TEntityView

The new item content.

destination TEntityView

The item to update.

Returns

Task<TEntityView>

true if the item was found and updated; otherwise false.