Coolcoder wrote:
Would there be a problem if I am trying to set it to NULL if it is already NULL?
No, that would be a problem with an old runtime lib, but yours is pretty new, there are no bugs known related to setnewfieldvalue after that date.
So to be able to test what you're experiencing here, I have to verify if I understand the situatoin correctly:
you have a single entity, which has an FK field, which is a GUID, and you load an instance of that entity and then set that FK field to nothing, by using the statement you quoted.
at the point you set the field to nothing, the related entity is NOT present? And because you're casting, I assume you're using adapter?