i am trying to add an order entity to an Azure table. When i add the entity it only adds the values for partition key and row key. Any help is much appreciated. Here is my code.
class OrderEntity : TableServiceEntity
{
public int customerID;
public int productID;
public Double price;
public String status;
}
Then in a seperate class
OrderEntity order = new OrderEntity();
order.customerID = retrievedCustomer.id;
order.productID = selectedProduct.id;
order.price = Convert.ToDouble(selectedProduct.price);
order.PartitionKey = retrievedCustomer.id.ToString();
order.RowKey = counter.ToString();
order.status = "Processing Order";
serviceContext.AddObject("orders", order);
// Submit the operation to the table service
serviceContext.SaveChangesWithRetries();