What is Opf3? Why is Opf3? How is Opf3? All these burning questions and issues discussed here.
 | |
| | Is there a way to tell OPF that an object already exists in the Database and to update it and not insert it when you persistchanges?
|
 | |
| | Hi Thomas,
there would be a walk around that. You can mark all the properties of the persistent object as DontUpdate (PersistBehaviour property of the FieldAttribute). In that case no update would run if none of them is updateable.
Otherwise you would need to check it manually first.
Christian
|
 | |
| | I Want it to update I dont want it to be inserted
|
 | |
| | You could also use the GetObjectInfo method of the ObjectContext and set the ObjectState to Inserted! In that case Opf3 will try an update instead of an insert.
Christian
|
 | |
| | Thanks
|