This question is locked. New answers and comments are not allowed.
I get this error when trying to create a detached copy of a list.
The supplied instance is not of type Telerik.OpenAccess.SPI.dataobjects.PersistenceCapable
I can retrieve the list of objects just fine. The error only gets thrown when I try to pass the list to CreateDetachedCopy.
For reference sake, I'm building my OA classes using an rlinq file with attributes mappings with a db-first approach and am relying on the OpenAccess.CodeFirst nuget package to do the enhancing.
I played around with some enhancer settings to see if there was something wrong on that side, but to no avail. If I try to use an unenhanced assembly then OA won't even return the list (says some stuff about metadata missing). I can also see the enhancer tasks getting called if I build the project manually and output the build results to a log file: "The project was successfully enhanced by Telerik OpenAccess ORM Enhancer 2013.3.1014.1".
Any thoughts on what I could be doing wrong?
The supplied instance is not of type Telerik.OpenAccess.SPI.dataobjects.PersistenceCapable
I can retrieve the list of objects just fine. The error only gets thrown when I try to pass the list to CreateDetachedCopy.
For reference sake, I'm building my OA classes using an rlinq file with attributes mappings with a db-first approach and am relying on the OpenAccess.CodeFirst nuget package to do the enhancing.
I played around with some enhancer settings to see if there was something wrong on that side, but to no avail. If I try to use an unenhanced assembly then OA won't even return the list (says some stuff about metadata missing). I can also see the enhancer tasks getting called if I build the project manually and output the build results to a log file: "The project was successfully enhanced by Telerik OpenAccess ORM Enhancer 2013.3.1014.1".
Any thoughts on what I could be doing wrong?