Op 2011-01-20 11:16, Konnov Dmitry het geskryf:
> Hello All,
> 
> Whan is the purpose of RegisterCollection method?
> Does it affect on display relationships in  TtiVTTreeView?
> When it makes a sence to register Objects of one class to list of another?


See the demos... Sorry if the example below wordwraps in the email.


procedure RegisterMappings;
begin
  //                                          Class,   Table,
Property,     Column,       Special Info
  gTIOPFManager.ClassDBMappingMgr.RegisterMapping(TClient, 'Client',
'OID',        'OID',        [pktDB]);
  gTIOPFManager.ClassDBMappingMgr.RegisterMapping(TClient, 'Client',
'ClientName', 'Client_Name'        );
  gTIOPFManager.ClassDBMappingMgr.RegisterMapping(TClient, 'Client',
'ClientID',   'Client_ID'          );
  gTIOPFManager.ClassDBMappingMgr.RegisterCollection(TClientList, TClient);
end;


RegisterCollection() is used to register which class is the collection
item (eg: TClient) for a list class (eg: TClientList). Then tiOPF's
AutoMapping functionality can generate the correct SQL statements.

I don't know much about the AutoMapping functionality - it is simply to
limited for my needs, so I only use hard-coded visitor to persist my data.

Regards,
  Graeme



------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
tiOPF-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tiopf-talk

Reply via email to