I’m having a problem when defining an overridden Entity Factory. I think that the core of the problem is the object that the factory is responsible for creating inherits from a class that is also inherited from by another LLBLgen generated class.
EntityClass(LLBL Generated)
|
DbEntityClass(LLBL Generated)
|
---------------------------------------
| |
MyDbEntityClass DbEntityClass2(LLBL Generated)
The factory I created inherits from the DbEntityClass’s factory and creates the type of object MyDbEntityClass. When I try to fetch from the database, an exception gets thrown with the message "entityToAdd isn't of the right type". If I break the DbEntityClass to DbEntityClass2 relationship, it works.
Am I trying to do something I’m not supposed to or is there another way to achieve this?
Thanks
Dan