To detach and then attach persistent instances to an object context, the classes must meet one of the following conditions:
- Expose public Version and Id fields
- Implement the IDataObjectKey interface
You must also add using statements for the following namespaces:
- System.IO
- System.Xml.Serialization
|