delphimvcframework icon indicating copy to clipboard operation
delphimvcframework copied to clipboard

Can't compile in Delphi 10.2 MVCFramework.ActiveRecord; AddTableMap method

Open jairgza opened this issue 1 year ago • 1 comments
trafficstars

When compiling package dmvcframeworkRT for Delphi 10.2 I got an error on method TMVCTableMapRepository.AddTableMap on the line 4546

if not fTableMapDict.TryAdd(lKey, TableMap)

It seems that TObjectDictionary has no TryAdd method on my Delphi version.

I modified that line like a previous version "fTableMapDict.Add " and all compile.

Regards

jairgza avatar Jan 15 '24 02:01 jairgza

I have same problem, and I have also for now just modified the previous version.

mivimicrocom avatar Feb 12 '24 13:02 mivimicrocom

Is fTableMapDict.TryGetValue available in Delphi 10.2?

danieleteti avatar Mar 08 '24 10:03 danieleteti

https://docwiki.embarcadero.com/Libraries/Tokyo/en/System.Generics.Collections.TDictionary.TryGetValue

isysoftware avatar Mar 08 '24 10:03 isysoftware

Please, check the repo version.

danieleteti avatar Mar 08 '24 11:03 danieleteti