Table of Contents

Namespace Trellis.Asp.ModelBinding

Classes

MaybeModelBinder<TValue, TPrimitive>

Model binder for Maybe<T> parameters where TValue implements IScalarValue<TSelf, TPrimitive>. Binds optional route, query, form, and header parameters to Maybe<T>.

ScalarValueModelBinderBase<TResult, TValue, TPrimitive>

Base model binder for scalar value types that handles primitive conversion, validation via TryCreate, and error collection.

ScalarValueModelBinderProvider

Detects scalar value types and Maybe<T> wrapping scalar value types, and provides model binders for them.

ScalarValueModelBinder<TValue, TPrimitive>

Model binder for scalar value types. Validates scalar values during model binding by calling TryCreate.