Interface IAggregatable
Contract for an entity's ability of being aggregated within a graph.
Namespace: Kephas.Data.Capabilities
Assembly: Kephas.Data.dll
Syntax
public interface IAggregatable
Methods
| Improve this Doc View SourceGetFlattenedEntityGraphAsync(IGraphOperationContext, CancellationToken)
Gets the flattened entity graph asynchronously. This may include also loose parts which are asynchronously loaded. If no loose parts must be loaded, then the result is the same with GetStructuralEntityGraph().
Declaration
Task<IEnumerable<object>> GetFlattenedEntityGraphAsync(IGraphOperationContext operationContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IGraphOperationContext | operationContext | The operation context. |
System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.Object>> | A promise of the flattened entity graph. |
GetGraphRoot()
Gets the root of the entity graph.
Declaration
IAggregatable GetGraphRoot()
Returns
Type | Description |
---|---|
IAggregatable | The graph root. |
GetStructuralEntityGraph()
Gets the flattened structural entity graph excluding the loose parts (only the internal structure).
Declaration
IEnumerable<object> GetStructuralEntityGraph()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | The flattened structural entity graph. |