Table of Contents

Class EntityCriteriaView<T>

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

Criteria-entry block for an entity type. Registers criteria commands.

public class EntityCriteriaView<T> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable where T : IEntity

Type Parameters

T
Inheritance
EntityCriteriaView<T>
Implements
Inherited Members

Remarks

See DynamicEntityCriteriaView if you don't have a static type.

Properties

BaseQuery

The entities to which specification will be applied.

[Parameter]
[EditorRequired]
public IFrozenQuery<T>? BaseQuery { get; set; }

Property Value

IFrozenQuery<T>

InitialValues

Pre-filled defaults.

[Parameter]
public IDictionary<string, string>? InitialValues { get; set; }

Property Value

IDictionary<string, string>

Logger

[Inject]
public ILogger<EntityCriteriaView<T>> Logger { get; set; }

Property Value

ILogger<EntityCriteriaView<T>>

OnQuery

Called when a new specification has been set.

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

Property Value

EventCallback<AppliedCriteria<T>>

Services

[Inject]
public IServices Services { get; set; }

Property Value

IServices

Type

The type to specify. See ICriteriaSpec to customise the generated criteria.

[Parameter]
[EditorRequired]
public IEntityInfo? Type { get; set; }

Property Value

IEntityInfo

Methods

ApplyCriteria()

public void ApplyCriteria()

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

OnInitialized()

Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.

protected override void OnInitialized()

OnParametersSetAsync()

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

Returns

Task

A Task representing any asynchronous operation.

ResetCriteria()

public void ResetCriteria()