Sorry for all the questions today.
If I have an entity fetched from the database with a nullable field whose value is null, and I reset the value of the field to null again, should this cause the field and entity to be marked changed (and thus generate an update)?
So (pseudocode):
ProductEntity product = new ProductEntity();
product.property = null;
Save(product);
product2 = FetchProduct(product.Id);
product2.property = null;
Save(product2);
I would think there would be no update statement generated, since I'm not actually changing anything. However, an update statement is getting emitted, and I wanted to know if this is expected behavior.
Thanks,
Phil
(Edit: I have also tried setting the property using SetNewFieldValue--same result).
(Edit #2: Version 2.0 with latest runtimes, adapter vs. SQL 2005).