marcaotula / delphi-orm

Automatically exported from code.google.com/p/delphi-orm
0 stars 0 forks source link

Demos Not Running Correctly #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Any chance you have had a chance to look at the demos? They compile but none of 
them run "out of the box". They all have some problem that prevents them from 
running correctly. 

Also is it not possible to have a really basic demo? Just inserts, deletes and 
selects?

Thanks

Original issue reported on code.google.com by donovanb...@gmail.com on 24 Sep 2012 at 4:52

GoogleCodeExporter commented 9 years ago
Hi,
same remark
-> I have made the required modifications on my own SVN working copy of:
1. ...\trunk\samples\DelphiXE3\TdormSession_Sample01\dormSample1.dproj
2. ...\trunk\samples\DelphiXE3\ObjectsLists\ObjectsLists.dproj
3. .. the remaining is coming soon :)

Where to commit a SVN 'tag' repository ?
NB: I use XE3

Original comment by didier.c...@gmail.com on 2 Feb 2013 at 8:13

GoogleCodeExporter commented 9 years ago
Hi didier.cabale,
You're not a contributor now, so the best way could be the following:
- Send me the patches
- I'll do a diff & commit (and check also with XE2)

You can attach the patches here

Thank you

Original comment by daniele....@gmail.com on 3 Feb 2013 at 12:23

GoogleCodeExporter commented 9 years ago
Hi Daniele,

1. I set SQLite3 as default database for all demos, because no need extra 
tweaks with SQLite3
2. missing dorm.ObjectStatus, dorm.adapters in some 'uses' clauses -> updated
3. a link to your local .vrc removed
4. I added readme.txt file in dormSample1, first-time demo
5. comment in TodoManager.MainForm
6. in .conf files, I set relative paths to SQLite3 database
7. I added missing LINK_xxx_ADAPTER compiler defines in relevant compiler's 
options
8. dsserver demo: compiler defines in MainServerForm.pas: I set condition 
LINK_xxx_ADAPTER to xxx_STRATEGY compiler defines

9. dsclient demo:
seems that XE3 cannot UnMarshal 
'System.Generics.Collections.TMoveArrayManager<T>' -> dsclient fails to run
Why ? please follow these steps:
1. open dsclient
2. put a breakpoint in Data.DBXJSONReflect.pas, line#2791, ie "Result := 
Ctx.FindType(TypeName);" (of class function TJSONUnMarshal.ObjectType(Ctx: 
TRttiContext; TypeName: string) : TRttiType;)
3. run dsclient
4. on break, observe Result. You'll see that class 
'System.Generics.Collections.TMoveArrayManager<BusinessObjects.TLaptop>' is not 
registered by Ctx context.
I still wonder why TMoveArrayManager<aType> is not recognized whereas 
TObjectList<aType> is recognized in DORM .. Maybe your StackOverflow input here 
-> http://stackoverflow.com/a/3462457 ?

Anyway take of course what you want from my review, but be aware that my 
intention is to help making things easier for new comers, and that I'm one of 
these.

Congratulations for your job !
Kind regards .. and bravo alla squadra XV
Didier Cabalé
http://didier.cabale.free.fr/delphi.htm

Original comment by didier.c...@gmail.com on 4 Feb 2013 at 8:02

Attachments: