3
votes
Attributes
The Doric Temple
– Last time, I demonstrated how I would like to decorate my class using attributes to declare the table and column names I eventually will use to persist the class. Here are the the declarations of the two attributes I used. PersistentClassAttribute = class sealed(TCustomAttribute) strict private fTableName : string; public constructor Create(const aTableName : string); property TableName : string read fTableName; end;PersistentPropertyAttribute = class sealed(TCustomAttribute) strict private fColumnName : string; fKey : Boolean; public constructor Create(const ...
Statistics
|
Visits by Source |
User Actions |




