IViewProcessor
Ecng.Serialization
Generic interface for processing view entities with typed CRUD operations.
Implementa: IViewProcessor
Propiedades
Select
public IQueryable<TEntity> Select { get; }
value = iViewProcessor.Select
Gets the queryable source for the view entities.
Métodos
Create
public ValueTask<TEntity> Create(TEntity view, CancellationToken cancellationToken)
result = iViewProcessor.Create(view, cancellationToken)
Creates a new view entity.
- view
- The entity to create.
- cancellationToken
- Cancellation token.
Devuelve: The created entity.
Delete
public ValueTask<bool> Delete(TEntity view, CancellationToken cancellationToken)
result = iViewProcessor.Delete(view, cancellationToken)
Deletes a view entity.
- view
- The entity to delete.
- cancellationToken
- Cancellation token.
Devuelve: if the entity was deleted; otherwise, .
ReadById
public ValueTask<TEntity> ReadById(TId id, CancellationToken cancellationToken)
result = iViewProcessor.ReadById(id, cancellationToken)
Reads a single entity by its identifier.
- id
- The entity identifier.
- cancellationToken
- Cancellation token.
Devuelve: The matching entity.
ReadRange
public ValueTask<TEntity[]> ReadRange(TId[] ids, CancellationToken cancellationToken)
result = iViewProcessor.ReadRange(ids, cancellationToken)
Reads a range of entities by their typed identifiers.
- ids
- Array of typed entity identifiers.
- cancellationToken
- Cancellation token.
Devuelve: Array of matching entities.
Update
public ValueTask<TEntity> Update(TEntity view, CancellationToken cancellationToken)
result = iViewProcessor.Update(view, cancellationToken)
Updates an existing view entity.
- view
- The entity to update.
- cancellationToken
- Cancellation token.
Devuelve: The updated entity.