Hi Wagner
Thanks for reply
In fact inside same xdata server I get functions for own service implementation and I'm using a model of several objects with relations at different depths.
Each service implementation is using several request like
Product := TXDataOperationContext.Current.GetManager.Find<TProduct>.Where(TLinq.Eq('product_name', nametosearch)).UniqueResult;
And when a I call a first time function everything is working fine.
But when I'm calling the same function (or other using similar object) often I get this famous ""The object is already in persistent context"
As you mention it's quite logic as AureliusManager is requested to integrate to instance of same objects with same id, from direct relation or in depth relation (level 2 or more).
But if I'm calling TXDataOperationContext.Current.GetManager on all function I guess I keep the same AureliusManager so with already know instances
That's why I'm requesting it to forget instance by "evict"
Do I create specific Manager instance inside each function to be sure there won't be conflicts ?
TXDataOperationContext.Current.CreateManager