Class BoundEntity<T>
Headless data source for presenting an entity. Caches, prerenders, preloads and pages.
public class BoundEntity<T> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable where T : IEntity<T>
Type Parameters
T
- Inheritance
-
BoundEntity<T>
- Implements
- Inherited Members
Properties
ChildContent
[Parameter]
public RenderFragment<EntityResult<T>>? ChildContent { get; set; }
Property Value
ErrorContent
[Parameter]
public RenderFragment<Exception>? ErrorContent { get; set; }
Property Value
ID
ID of the entity to load. Changing it loads a new entity.
[Parameter]
[EditorRequired]
public Guid ID { get; set; }
Property Value
LoadContext
The unit of work to load into; each load gets a fresh context if unset.
[Parameter]
public IEntityContext? LoadContext { get; set; }
Property Value
LoadingContent
[Parameter]
public RenderFragment? LoadingContent { get; set; }
Property Value
OnLoaded
Raised once the entity is loaded.
[Parameter]
public EventCallback<T> OnLoaded { get; set; }
Property Value
Once
If set, only a stale cache hit subscribes to updates, and only until its revalidation lands; otherwise the entity tracks cache updates for as long as it is presented.
[Parameter]
public bool Once { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
OnParametersSet()
Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.
protected override void OnParametersSet()