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

Implemented 'ODataPropertyName' attribute #117

Merged
merged 6 commits into from
May 18, 2024

Conversation

pikami
Copy link
Contributor

@pikami pikami commented Sep 7, 2023

There may be cases when the model in the OData service is different from the model in the application. In those cases we need a way to override the property names of our model to match those in the OData service.
This PR adds support for custom property names during query building by using a new 'ODataPropertyName' attribute.

This fixes and or provides workarounds the following issues:

While I believe this feature can be beneficial in certain scenarios, I do acknowledge that it may not be the most elegant or intuitive solution. I'm more than open to discussing alternative approaches that might better align with this library's design philosophy.

@BarberMSFT
Copy link

will this get approved?

@pikami
Copy link
Contributor Author

pikami commented May 11, 2024

will this get approved?

@BarberMSFT I've published my patched version to nuget, you can use it while this PR is not merged.
https://www.nuget.org/packages/OData.BigQueryBuilder

@ZEXSM
Copy link
Owner

ZEXSM commented May 13, 2024

will this get approved?

@BarberMSFT I've published my patched version to nuget, you can use it while this PR is not merged. https://www.nuget.org/packages/OData.BigQueryBuilder

@pikami
Copy link
Contributor Author

pikami commented May 13, 2024

@ZEXSM Looks like your ci pipeline doesn't have the "CONFIGURATION" variable set.

@ZEXSM
Copy link
Owner

ZEXSM commented May 16, 2024

@pikami, checked, she is there, I'm still figuring out what the problem is

@ZEXSM
Copy link
Owner

ZEXSM commented May 16, 2024

@pikami try

@pikami
Copy link
Contributor Author

pikami commented May 18, 2024

@ZEXSM Just checked, it works as expected.

@ZEXSM
Copy link
Owner

ZEXSM commented May 18, 2024

@pikami, try merge PR

@pikami
Copy link
Contributor Author

pikami commented May 18, 2024

Only those with write access can merge pull requests.

@ZEXSM ZEXSM merged commit e3549b9 into ZEXSM:main May 18, 2024
2 checks passed
@BarberMSFT
Copy link

was out last week but awesome work, thank you!

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.

None yet

3 participants