public void Update(BlobMeta original, BlobMeta data) { original.Date = data.Date; original.ResourceUri = data.ResourceUri; UpdateObject(original); SaveChanges(); }
public void Add(BlobMeta data) { data.RowKey = data.RowKey.Replace("/", "_"); BlobMeta original = (from e in Data where e.RowKey == data.RowKey && e.PartitionKey == Table.PartitionKey select e).FirstOrDefault(); if (original != null) { Update(original, data); } else { AddObject(JunkTrunkBase.TableName, data); } SaveChanges(); }
public static void Add(BlobMeta data) { Context.Add(data); }