EntityModel
classin packageklyn.data
public final class EntityModel:
EntityModel

Immutable explicit entity model owned by an EntityManagerFactory.

The model is never inferred from linked reflection metadata. This prevents unrelated entities from silently changing schema operations when an application dependency is added. Class names are first-class Type values in this expression context.

model = EntityModel([User, Order])
assert model.mappedTypes[0] == User.type
Properties
Modifier and Type Member Description
public readonly property mappedTypes
mappedTypes as IList<Type>:
Immutable, deterministically ordered mapped entity types.
Constructors
Modifier and Type Member Description
public EntityModel
EntityModel(mappedTypes as IList<Type>):
Creates an immutable entity model from a validated type list.