Skip to content

Support type coercion in Delta<T>.TrySetPropertyValue#1573

Open
icnocop wants to merge 1 commit into
OData:mainfrom
icnocop:issue1572
Open

Support type coercion in Delta<T>.TrySetPropertyValue#1573
icnocop wants to merge 1 commit into
OData:mainfrom
icnocop:issue1572

Conversation

@icnocop
Copy link
Copy Markdown

@icnocop icnocop commented May 12, 2026

Add TryConvertPropertyValue to enable value type coercion (e.g., Int64 to Int32) when setting properties in Delta. Update TrySetPropertyValueInternal to use this logic. Add tests to verify correct handling and change tracking for coerced values.

Fixes #1572

Add TryConvertPropertyValue to enable value type coercion (e.g., Int64 to Int32) when setting properties in Delta<T>. Update TrySetPropertyValueInternal to use this logic. Add tests to verify correct handling and change tracking for coerced values.

Fixes OData#1572
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delta<T>.TrySetPropertyValue silently drops changes when a numeric value arrives as a wider type (e.g. Int64 for an Int32 property)

1 participant