Issue with Conventional Keys in the OData Client #3051
lawynn
started this conversation in
OData Libraries 8
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have found an issue when attempting to connect to an OData service using POCO classes that do not have [Key] attributes set, and are relying on "Id" properties.
The EDM looks fine, and all queries work, however when attempting to save a change using the "AttachTo", an exception is thrown that indicates the resolved EntityDescriptor does not define any keys.
I have traced it to the ODataTypeInfo.cs class, and started this PR to correct it, I don't understand why the case sensitivity would be set to ordinal as opposed to OrdinalIgnoreCase as the convention for property names should be "Id" vs "ID" I added a PR, and an Issue:
#3050
#3052
Beta Was this translation helpful? Give feedback.
All reactions