Page 297 Listing all products from the CosmosDB says to set the current culture to french to see the euro symbol. However the output for the unit price is converted to string and not displaying the currency symbol. Removing the ToString from unitPrice fixes this issue.
foreach (ProductCosmos product in products)
{
WriteLine("id: {0}, productName: {1}, unitPrice: {2}",
arg0: product.id, arg1: product.productName,
arg2: product.unitPrice.ToString());
}
to
foreach (ProductCosmos product in products)
{
WriteLine("id: {0}, productName: {1}, unitPrice: {2}",
arg0: product.id, arg1: product.productName,
arg2: product.unitPrice);
}
Page 297 Listing all products from the CosmosDB says to set the current culture to french to see the euro symbol. However the output for the unit price is converted to string and not displaying the currency symbol. Removing the ToString from unitPrice fixes this issue.
to