EnfusionDatabaseFramework icon indicating copy to clipboard operation
EnfusionDatabaseFramework copied to clipboard

Automatic entity lazy load or aggregation with forign entity id

Open Arkensor opened this issue 1 year ago • 0 comments

Think about if a db entity should be able to mention another entity by id so that on load from db or on lazy access on the property the relation is hydrated.

Needs a concept of how the other db entity is accessed, how the foreign key is annotated in the primary db entity and how to avoid cyclic loads and how to deal with async calls on the lazy get.

class TAG_MyCustomDbEntity : EDF_DbEntity
{
    [ForignKey()]
    string m_sOtherDbEntity;
};

Arkensor avatar May 29 '23 07:05 Arkensor