In my generated code there is an instance created of the DynamicQueryEngine in constructor of the DAO class.
Public Class DatabaseInformationDAO
Inherits DaoBase
''' <summary>CTor</summary>
Public Sub New()
MyBase.New(InheritanceInfoProviderSingleton.GetInstance(), New DynamicQueryEngine(), InheritanceHierarchyType.None, "DatabaseInformationEntity", New DatabaseInformationEntityFactory())
End Sub
When doing a getmulti on the belonging collection class this method is called. Next I get an exception on the constructor of the DynamicQueryEngine.
An exception of type 'System.TypeInitializationException' occurred in CCS.DesignStudio.DataLayer.dll but was not handled in user code
Additional information: De type-initialisatiefunctie voor SD.LLBLGen.Pro.DQE.SqlServer.DynamicQueryEngine heeft een uitzondering veroorzaakt.
(i'm sorry it's in dutch, it's the well kwown TypeInitializationException)
This call is done in a different thread, in a background worker.
Can this have something to do with it.