Hello, I've created my own entities subclassing the ones generated by LLBLGen pro because I need extra stuff in them and like the manual says it's possible to do this using inheritance.
When an entity has a one-to-many relation then a property for this relation is generated exposing an EntityCollection. When using subclassed entities the factory for this collection has to be set to the one which creates the subclassed entity instead of the original one. This work perfectly, but for many-to-one relations? My custom entities expose a property for many-to-one relations that expose my custom entity version instead of the original, for example:
LLBLGen:
Class ChildEntity
Property Father as FatherEntity
my own:
Class MyChildEntity
Inherits ChildEntity
Property Father as MyFatherEntity
The problem is, when an entity collection of MyChildEntity is fetched, the property Father does not contain an instance of MyFatherEntity (which is what I want) but of FatherEntity, so I would like to know if there's an extensibility point so that an instance of MyFatherEntity is inserted and if yes how should I do this.
Thanks a lot
Simone