Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Dynamic properties serialization fails #3465

@ruzena-kavanova

Description

@ruzena-kavanova

Dear oData team,
I'm using oData client libraries version 8.4.3. I have generated the client using "Add connected service" tools in Visual Studio, so far, so good.
When receiving entities from the server, dynamic properties (the extra properties not included in the service metadata) are created. That is ok, but the change tracker marks all the dynamic properties as changed which is not ok, because there is no actual change. I can live with that, but the real issue is, that the serializer fails to serialize the dynamic properties with error 'System.Collections.Generic.IEnumerable`1[Microsoft.OData.ODataProperty]' has no settable properties.
I resolved this issue by clearing dynamic properties before calling SaveChanges.
Dear team, any advice, how to do without the workaround?
Thanks a lot for reply
RK.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions