Atributos de Proriedades

Mapeamento ›› Atributos ››
Parent Previous Next

Os atributos de propriedades são definidos no topo de cada proriedade da classe.


Exemplo :


[Restrictions([NoInsert, NoUpdate])]

[Column('client_name', ftString, 60)]

[JoinColumn('client_name','client','client_id',InnerJoin)]

[Dictionary('Nome do Cliente')]

property client_name: string index 0 read fclient_name write fclient_name;


[Association(OneToOne,'client_id','client_id','client_name')]

property client: Tclient read Fclient write Fclient;


[Association(OneToMany,'master_id','master_id')]

property detail: TObjectList<Tdetail> read Fdetail write Fdetail;





Created with the Personal Edition of HelpNDoc: Easily create HTML Help documents