예제 #1
0
        public void Update(Knowledge knowledge)
        {
            // Create the Replace TableOperation.
            TableOperation updateOperation = TableOperation.Replace(knowledge);

            // Execute the operation.
            knowledgeTable.Execute(updateOperation);
        }
예제 #2
0
        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);
            }
        }