Open ccarmannt opened 7 months ago
Your MyDataType
, has fields and not properties. It should be something like below:
public class MyDataType
{
public string Value1 { get; set; }
public string Value2 { get; set; }
}
@jaliyaudagedara Thank you for this. I was able to confirm this change indeed works.
However, I haven't been able to find anything in the documentation stating that this is required, or explaining why.
cc/ @sebastianburckhardt in case he can chime in
Description
When creating a durable entity, the entity is created with null values for the properties in the class.
This is how the entity looks in Azure Storage Explorer after a couple of runs:
Expected behavior
Property values should be stored stored correctly.
Actual behavior
Property values are stored as nulls. When debugging, it appears that the
Add
operation in the durable entity class is receiving the object with null values:Relevant source code snippets
Function for creating the durable entity:
datatype class:
Durable entity class:
Known workarounds
None found so far.
App Details