Skip to content

ORM Contexts

G-Art edited this page Jan 5, 2021 · 6 revisions

ORM Contexts

Coretex ORM based on two contexts first is global meta-type context and item-related context.

Meta type context

Coretex contain CortexContext that implement MetaTypeProvider interface.

This context used to provide any information about predefined meta types like (RegularTypeItem, MetaTypeItem, MetaEnumValueTypeItem, MetaEnumTypeItem, MetaRelationTypeItem)

Using this context ActiveORM perform the following operation like: item creation, item saving, item removing, query transformation.

Item context

Each Item instance contains ItemContext to provide abilities lazyload attributes data, a track that data been changed and used in saving action.


Be aware!!!

Methatypes has specific context that restricts their modification to prevent metadata changing during runtime.