delphimvcframework
delphimvcframework copied to clipboard
Can't compile in Delphi 10.2 MVCFramework.ActiveRecord; AddTableMap method
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
I have same problem, and I have also for now just modified the previous version.
Is fTableMapDict.TryGetValue available in Delphi 10.2?
https://docwiki.embarcadero.com/Libraries/Tokyo/en/System.Generics.Collections.TDictionary.TryGetValue
Please, check the repo version.