Table of Contents

Class BoundEntity<T>

Namespace
The.Web.Entities
Assembly
Instagile.Web.Client.dll

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

RenderFragment<EntityResult<T>>

ErrorContent

[Parameter]
public RenderFragment<Exception>? ErrorContent { get; set; }

Property Value

RenderFragment<Exception>

ID

ID of the entity to load. Changing it loads a new entity.

[Parameter]
[EditorRequired]
public Guid ID { get; set; }

Property Value

Guid

LoadContext

The unit of work to load into; each load gets a fresh context if unset.

[Parameter]
public IEntityContext? LoadContext { get; set; }

Property Value

IEntityContext

LoadingContent

[Parameter]
public RenderFragment? LoadingContent { get; set; }

Property Value

RenderFragment

OnLoaded

Raised once the entity is loaded.

[Parameter]
public EventCallback<T> OnLoaded { get; set; }

Property Value

EventCallback<T>

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

bool

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

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()