How to get specified Entity from TMappedCollection
Posted: Thu 06 Jan 2022 18:59
Hi,
i'm newbe in the Entity-World ;-)
how i can get a entity from a collection according to spectial atributes and values ( like TDataSet.Locate () ).
Currently i'm do ot with an loop:
for ASetting in ASettings do
begin
if ASetting.ArticleNumber =5 then
begin
// i found the entity in the collection
Break;
end;
end;
But this is very primitive solution.
Can somebody help me with better solution?
Greetings Andy
i'm newbe in the Entity-World ;-)
how i can get a entity from a collection according to spectial atributes and values ( like TDataSet.Locate () ).
Currently i'm do ot with an loop:
for ASetting in ASettings do
begin
if ASetting.ArticleNumber =5 then
begin
// i found the entity in the collection
Break;
end;
end;
But this is very primitive solution.
Can somebody help me with better solution?
Greetings Andy