This is a migrated thread and some comments may be shown as answers.

"Intentionally not implemented." exception when commiting changes from ObjectContainer to ObjectScope

1 Answer 208 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cameron
Top achievements
Rank 1
Cameron asked on 27 Jan 2011, 08:03 AM
Hi,

I am using an ObjectContainer to implement a wizard like set of web forms (similar to the description on the telerik blog.), the design can handle either creating new instances, or using existing orm object instances.  However, when I attempt to copy finalised changes to existing objects back to the Scope I am getting an "Intentionally not implemented" exception being thrown from Telerik.OpenAccess.RT.CopySM.setObjectField(...) when it is attempting to set a timestamp property.

It is only occurring when attempting to change an existing object from the database, brand new objects copy back and save without an issue.

The property in question does not actually need to be copied at the point the error is occurring, as it will be overwritten when persisted to the database anyway.  I attempted marking the property with the Telerik.OpenAccess.ObjectContainer.ObjectMergerProtectOverwrite attrbute, but that appears to have no affect at all, even when ObjectContainer.CommitChanges is called with allField=false!

Is there anyway to get the ORM to ignore a field in the copy operation successfully at this time?

Thanks,
Cameron

1 Answer, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 02 Feb 2011, 12:43 PM
Hi Cameron,
This method should not be called at all. Can you give me some more information? I need the complete stack trace, maybe with InnerException as well. Which type does the field have that we try to copy?

Kind regards,
Jan Blessenohl
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Tags
Development (API, general questions)
Asked by
Cameron
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Share this question
or