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
EntityViewName
Gets the entity view name.
string EntityViewName { get; }
Property Value
EntityViewType
Gets the entity view type.
Type EntityViewType { get; }
Property Value
KeyPropertyNames
Gets the names of the properties of the key.
IReadOnlyList<string> KeyPropertyNames { get; }
Property Value
Methods
AddFromExternalSourceAsync(IEntityView)
Adds an item from an external source.
Task<IEntityView> AddFromExternalSourceAsync(IEntityView entityView)
Parameters
entityView
IEntityViewThe 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
Returns
- Task<IFileResult>
The file.
GetKeyValues(object)
Gets key values from a key.
object[] GetKeyValues(object key)
Parameters
key
objectThe 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.