Connection DataModule

Hi,

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
Hi,

Done it with latest version.

Thanks

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

See "Referencing original component" in this topic: http://www.tmssoftware.biz/business/aurelius/doc/web/component_adapters.html

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.