dengaa / delphimvcframework

Automatically exported from code.google.com/p/delphimvcframework
0 stars 0 forks source link

Changes for XE3 to compile #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Daniele:

If you make the following change in the RTTIUtilsU.pas file it will compile for 
XE3 as well.

In this method:
class procedure TRTTIUtils.CopyObjectAS<T>(SourceObj, TargetObj: TObject);

Replace
_ARttiTypeTarget := ctx.GetType(T);
with
_ARttiTypeTarget := ctx.GetType(TClass(T));

Great framework by the way - thin and very easy to use. 

How about being able to use Camel Case (lower) for the JSON keys?
TJSONNameCase = (JSONNameUpperCase, JSONNameLowerCase, JSONNameLowerCamelCase);

Regards,
Gerhard

Original issue reported on code.google.com by vente...@gmail.com on 24 Feb 2014 at 4:36

GoogleCodeExporter commented 9 years ago
Thank you for your patch, however DMVCFramework should already compile on 
XE3... can you update and recheck please?

Original comment by daniele....@gmail.com on 7 Mar 2014 at 10:50

GoogleCodeExporter commented 9 years ago
Nope still doesn't compile unless I explicitly typecast T to TClass.

Original comment by vente...@gmail.com on 10 Mar 2014 at 6:42