Connection DataModule


With TXDataOperationContext.Current.GetManager called from a service method I get access to the DBConnection on the ConnectionModule,Is there a way to get access to the connection DataModule so I can call public methods of the connection Module?

Thanks in advance,

Omar Zelaya

Done it with latest version.


You can use IDBConnectionAdapter interface to retrieve the actual connection component (for example, TFDConnection). 

See "Referencing original component" in this topic:

If your component is dropped in a TDataModule, then you can simply get the Owner property of such component and type cast to your data module class.