Notice that PropertyInfoValue is a DateTime. When I insert this item via AddEntityAsync in the TableClient I can see in Azure Portal the entity is inserted as expected.
But when I retrieve the entity via GetEntityAsync in the TableClient then PropertyInfoValue's value has become of type System.String (tested by writing PropertyInfoValue.GetType() to console). The string value however is how you expected nicely formatted with ISO standard: "2021-06-04T14:55:30.9772495Z"
Boolean, Int, Double, etc. all work as expected.
I expected as with CosmosDb SQL API SDK that the Table API SDK would notice it's a datetime string and would Deserialize it back to a proper DateTime?
Package:
<PackageReference Include="Azure.Data.Tables" Version="12.0.0-beta.8" />
I have the following entity:
As you can see PropertyInfoValue is of type object.
I initialize the entity like so:
Notice that PropertyInfoValue is a DateTime. When I insert this item via AddEntityAsync in the TableClient I can see in Azure Portal the entity is inserted as expected.
But when I retrieve the entity via GetEntityAsync in the TableClient then PropertyInfoValue's value has become of type System.String (tested by writing PropertyInfoValue.GetType() to console). The string value however is how you expected nicely formatted with ISO standard: "2021-06-04T14:55:30.9772495Z"
Boolean, Int, Double, etc. all work as expected.
I expected as with CosmosDb SQL API SDK that the Table API SDK would notice it's a datetime string and would Deserialize it back to a proper DateTime?