これが可能かどうかはわかりませんが、C#Azure Table APIを使用して、新しいエンティティを作成してマージすることで、テーブルストレージのプロパティを更新しようとしています。
// 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();
基本的には、作成日を更新せずに最終アクセス日を更新したいのですが、DateTimesをnullにすることはできないのでできません。テーブルを2回呼び出さずにこれを行うことは可能ですか?これは頻繁に呼び出されるので、回避できるのであれば、更新する前にオブジェクトを取得したくありません。