public ChangeNote GetNote(ChangeNote note) { var query = new TableQuery<ChangeNote>().Where( TableQuery.CombineFilters( TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, note.PartitionKey), TableOperators.And, TableQuery.GenerateFilterCondition("RowKey", QueryComparisons.Equal, note.RowKey))); return _table.ExecuteQuery(query).ToList().Single(); }
public void Replace(ChangeNote note) { // Assign the result to a CustomerEntity object. var insertOrReplaceOperation = TableOperation.InsertOrReplace(note); // Execute the operation. _table.Execute(insertOrReplaceOperation); }
public void Update(ChangeNote note) { // Create the InsertOrReplace TableOperation. TableOperation updateOperation = TableOperation.Replace(note); // Execute the operation. _table.Execute(updateOperation); }