- This topic has 1 reply, 2 voices, and was last updated 1 year, 8 months ago by
kimbomadsen.
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Hi,
I would like to build a TObjectList<TSomeObject> from a dataset. I use the following code but it doesn’t work.
SomeObjectList := ORM.FromDataSet<TObjectList<TSomeObject>>(qSomeQuery);
I do not get an exception and when I debug and step in it just jumps to some assembly. Am I using the right syntax here? Could this problem be caused by the register knownclasses issue? I have added a reference like Fransisco suggested. When I just use the orm without the dataset it works fine!
Any suggestions…
Thanks in advance!
Luigi
Hi,
Use someobjectlist:=ORM. ListFromDataset<TSomeObject>(qSomeQuery)
where someobjectlist:TObjectList<TSomeObject>;
TSomeObject needs to be registered and known.