public void Update(Knowledge knowledge) { // Create the Replace TableOperation. TableOperation updateOperation = TableOperation.Replace(knowledge); // Execute the operation. knowledgeTable.Execute(updateOperation); }
public void Add(Knowledge knowledge) { if (GetKnowledge(knowledge.PartitionKey) == null) { // Create the TableOperation object that inserts the customer entity. TableOperation insertOperation = TableOperation.Insert(knowledge); // Execute the insert operation. knowledgeTable.Execute(insertOperation); } }