It seems to require too much effort to be worth solving ?
In the client program I work with Spring4D. Here there is also an IList. For this I have connections for various components. The bridge between the two looks like this:
type
TOrmArticleList = class(Spring.Collections.Lists.TObjectList<TOrmArticle>);
TOrmArticleObjArray = array of TOrmArticle;
function ...CreateArticleList(const pmcSectionID: TID): TOrmArticleList;
var
service: IArticle;
dataArr: TOrmArticleObjArray;
begin
if not dmDB.RestServer.Resolve(IArticle, service) then Exit(Nil); //=>
service.GetAllItems(pmcSectionID, [asActive], dataArr);
Result := TOrmArticleList.Create(dataArr, True);
end;
mORMot provides an ObjArray that fills the list. With the Spring4D classes I have many functions that I don't have to implement myself. If you only need the IList interface, you can write like this:
Result := TCollections.CreateObjectList<TOrmArticle>(dataArr, True);
With best regards
Thomas
It seems to require too much effort to be worth solving ?
]]>What does currently work, from your tests?
]]>I'm sure that there is a solution to this but at the moment I'm lost.
]]>