Reference > Configuration > Runtime

Element Appenders

Configure options for creating appenders that write an element's state to an appender.

core concept: element appender

Generically specify an element appender factory

Syntax

Use<T>()

Arguments

T
The generic parameter that specifies the type of `IExpressionElementAppenderFactory` to use in creating element appenders. `T` must have a public parameterless constructor.
syntax examples

Use a factory

Syntax

Use({factory}[,{configureTypes}])

Arguments

factory
A factory responsible for returning expression element appenders.
configureTypes
A delegate that allows for configuring element appenders for specific element types.
syntax examples

Configure specific element appenders

When using a custom factory and registrations for specific element types are made, the custom factory MUST support those registrations (the dbExpression default factory does).

Configure appenders using registered factory

Syntax

ForElementTypes({configureTypes})

Arguments

configureTypes
A delegate that allows for configuring element appenders for specific element types.
syntax examples

Generically use a factory for a specific appender

Syntax

ForElement<T>().Use<TAppender>()

Arguments

T
The element type the appender will be used for.
TAppender
The type of appender to use for element type `T`. `TAppender` must have a public parameterless constructor.

Configure a factory for a specific appender

Syntax

ForElement<T>().Use({factory})

Arguments

T
The element type the appender will be used for.
factory
A factory responsible for returning expression element appenders.
syntax examples
Previous
Statement Builders

© 2024 dbExpression. All rights reserved.