Explicit Change Tracking Required For The Array Field

This article is relevant to entity models that utilize the deprecated Visual Studio integration of Telerik Data Access. The current documentation of the Data Access framework is available here.

By default the OpenAccessContext silently manages the change tracking of the persistent objects. However, this is not possible for all types of fields that a class may contain. For example, changes in array fields could not be fully tracked by the object context. This limitation is present when an array field is not completely replaced with another array but only a certain element is changed. To notify the programmer for this behavior, Telerik Data Access shows a warning at compile time with this limitation.

Solution

When you change some value of an array, you will have to inform the context that you have made a changes, so that it can be persisted to the database. You have to use the MakeDirty method. For more information, see Explicitly Marking an Object as Changed.