API reference
API reference
Select your platform
No SDKs available
No versions available

withDataModel Function

Modifiers: final
Access the DataModel directly.
Use this for low-level operations that require direct DataModel access.
Example:
withDataModel { dm ->
    val entities = dm.queryDSL(...)
    // Low-level operations
}

Signature

inline fun <R> withDataModel(block: (DataModel) -> R): R

Parameters

block: Function1
A lambda that receives the DataModel.

Returns

The value returned by the block.

Throws

NullPointerException
if EntityContext has no DataModel set.
Did you find this page helpful?