Hello Tomasz M.Lipiński,
You can use the
Database.GetContext(persistentCapableObject) method to achieve this. The
GetContext method returns the object scope instance managing the passed object. In your case you should do the following:
Hope that helps.
Greetings,
Damyan Bogoev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.