Just had this error
[dcc64 Error] GAUtilsService.Impl.pas(191): E2010 Incompatible types: 'TUserCredentials' and 'Aurelius.Criteria.Base.TCriteria<GA.Entities.User.TUserCredentials>'
the line of code that generates that is
Creds := TXDATAOperationContext.Current.GetManager.Find<TUserCredentials>.where(TLinq.Eq('UserId', UserId));
Although as far as I can see they are the same class: GA.Entities.User.TUserCredentials
Any ideas? Thanks
Try using list
Credlist:tlist<TUserCredentials>;
...
Credlist := TXDATAOperationContext.Current.GetManager.Find.TUserCredentials>.where(TLinq.Eq('UserId', UserId));
or even better
Creds := TXDATAOperationContext.Current.GetManager.Find<TUserCredentials>.where(TLinq.Eq('UserId', UserId)).UniqueResult;
2 Likes
of course - sill mistake. Thanks @Mika_Koistinen
system
(system)
Closed
5
This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.