You are not logged in.
Pages: 1
Hello,
I was studying the example project located in "\lib\SQLite3\Samples\20 - DTO based service interface".
I changed TAirportService (of Project20ServerInMemory.dpr) and added constructor and destructor methods.
But when I use the interface on the client side, the constructor and destructor methods are not executed on the server side.
I can not use constructor or destructor in this type of class?
or if I need to use a constructor and destructor have any alternative?
I thank the attention.
Dorival
Offline
Ensure you inherit your class from TPersistentWithCustomCreate or TInterfacedObjectWithCustomCreate (as defined in mORMot.pas).
Then override the virtual constructor, which will be called as you expect.
Offline
cool... It´s work :-)
Thanks AB.
Offline
Pages: 1