Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue: CosmosDB to CosmosDB doesn't migrate "Id" field #100 #116

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

adambarath
Copy link
Contributor

Those who are using EntitFrameworkCore CosmosDb provider it is very important to make a difference between 'id' and 'Id' field on JSON objects. This fix handles it. I ran unit tests, all passed.

Reported Issue: #100

@adambarath
Copy link
Contributor Author

Kindly ping.

@bowencode
Copy link
Collaborator

bowencode commented Mar 29, 2024

The existing behavior is as designed for the normal use case where some id field exists and the expectation is that it will be used as the string "id" required by Cosmos DB, and simply changing the default casing handling would break that. An additional settings option can be used to change the behavior to what you're requesting though.

@bowencode bowencode linked an issue Mar 29, 2024 that may be closed by this pull request
@bowencode bowencode merged commit 7eb9c90 into AzureCosmosDB:main Mar 29, 2024
2 checks passed
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.

CosmosDB to CosmosDB doesn't migrate "Id" field
2 participants