Hello,
The entity is registrated with RegisterEntity.
But how can I get the entity class from string name.
Something like GetClassFromRegisterEntity(aClassName)?
Is there a function to get the class of the registrated entities?
Or must I registrate the class with Classes.RegisterClass and then get it with Classes.FindClass
[Entity]
[Table('CUSTOMERS')]
TCustomer = class (TInterfacedObject)
end;
...Regards,
initialization
RegisterEntity(TCustomer);
end.
function GetItem(aClassName: String; aID: Integer): <T>
var
oClass: TClass;
begin
oClass:= GetClassFromRegisterEntity(aClassName); // --> Can I get the class from the RegisterEntity?
end
Christophe