Ok, today I have many questions.
I have this and it works
var
LSubscription : TPubSubscription;
begin
for LSubscription in LSession.objManager.Find<TPubSubscription>.Where( xxx ).List do
LSession.objManager.Remove( LSubscription);
end;
now, I want to use this
var
LSubscription : TPubSubscription;
begin
LSubscription := LSession.objManager.Find<TPubSubscription>.Where( xxx );
end;
This makes a compiler error:
[dcc64 Fehler] Pub.func.Impl.pas(422): E2010 Inkompatible Typen: 'TPubSubscription' und 'Aurelius.Criteria.Base.TCriteria<Pub.dbEntities.TPubSubscription>'
If I change the declaration
var
LSubscription : TCriteria<TPubSubscription>;
everything is fine
But why is the first example ok??? And the second not?