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
TEntityViewThe 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
TEntityViewThe destination.
source
TEntityViewThe 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
TEntityViewThe destination.
source
TEntityViewThe 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
TEntityViewThe source.
Returns
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
intThe number of elements to skip.
top
intThe number of elements to return.
parameters
EntityViewParameters<TEntityView>Parameters.
additionalDataExpressions
AdditionalDataExpressionsThe 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
TEntityViewThe entity view item to reload.
additionalDataExpressions
AdditionalDataExpressionsThe 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
TEntityViewThe 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
objectThe item key.
source
TEntityViewThe new item content.
Returns
- Task<Result<TEntityView>>
true
if the item was found and updated; otherwisefalse
.
UpdateFromExternalSourceAsync(TEntityView, TEntityView)
Updates an item from an external source.
Task<TEntityView> UpdateFromExternalSourceAsync(TEntityView source, TEntityView destination)
Parameters
source
TEntityViewThe new item content.
destination
TEntityViewThe item to update.
Returns
- Task<TEntityView>
true
if the item was found and updated; otherwisefalse
.