Table of Contents

Class ModelHandler

Namespace
Htmx.Components.Models
Assembly
Htmx.Components.dll

Abstract base class for model handlers that provide CRUD operations and UI generation. Handles the coordination between data operations and UI components for specific model types.

public abstract class ModelHandler
Inheritance
ModelHandler
Derived
Inherited Members
Extension Methods

Properties

CrudFeatures

Gets or sets the CRUD operations that this handler supports. Determines which actions are available in the UI and API.

public CrudFeatures CrudFeatures { get; }

Property Value

CrudFeatures

KeyType

Gets the .NET type of the model's primary key. Used for type-safe key operations and routing.

public Type KeyType { get; protected set; }

Property Value

Type

ModelType

Gets the .NET type of the model this handler manages. Provides runtime type information for dynamic operations.

public Type ModelType { get; protected set; }

Property Value

Type

ModelUI

Gets or sets the UI context for this model handler. Specifies how the model should be presented (Table, Form, etc.).

public ModelUI ModelUI { get; set; }

Property Value

ModelUI

TypeId

Gets or sets the unique identifier for this model type. Used to identify and route requests to the appropriate handler.

public string TypeId { get; set; }

Property Value

string