I'm not sure if this is possible, but I'm trying to use the C# Azure Table API to update a property in table storage by creating a brand new entity and merging it:
// Create an object that only specifies the property to update
// (null properties are not updated)
var itemToUpdate = new TableEntity("PartitionKey", "RowKey");
itemToUpdate.DateLastAccessedUtc = DateTime.Now;
// can't do this!
//itemToUpdate.DateCreatedUtc = null;
// Attach to the item, update it, and save the changes
_dataContext.AttachTo(_dataContext.TableName, itemToUpdate, "*");
_dataContext.UpdateObject(itemToUpdate);
_dataContext.SaveChanges();
Basically, I want to update the last accessed date without updating the created date, but since DateTimes cannot be null, I can't do it. Is it possible to do this without making two calls to the table? Since this will be called frequently, I don't want to retrieve the object before updating it if I can avoid it.