We are aware of this issue and it is logged in our bug tracking system.
Your workaround is valid but instead of using reflection to read the old value I would suggest you the following alternative:
(EntitiesModel1 dbContext =
dbContext.Events.Changing += Events_Changing;
var customer = dbContext.Customers.FirstOrDefault();
sender, Telerik.OpenAccess.ChangeEventArgs e)
var context = sender
oldValue = context.GetOriginalValue<
It should be faster compared to reflection because the GetOriginalValues accesses directly the underlying objects storing the values and doesn't perform any reflection. The only disadvantage here is that the method is generic and you should know the type upfront. In my example above I am using <object> but this will result in not needed boxing. Probably in your implementation you can use switch based on the type to be more optimal.
Would it be possible to share with us which is the previous version that was working for you in this scenario?
I hope this helps. Should you have any additional questions do not hesitate to get back to us.
OpenAccess ORM is now Telerik Data Access
. For more information on the new names, please, check out the Telerik Product Map