注文エンティティを Azure テーブルに追加しようとしています。エンティティを追加すると、パーティション キーと行キーの値のみが追加されます。どんな助けでも大歓迎です。これが私のコードです。
class OrderEntity : TableServiceEntity
{
public int customerID;
public int productID;
public Double price;
public String status;
}
その後、別のクラスで
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();