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

Error handling Guid in ObjectExtensions.AddDataToField #93

Open
Stefan6440 opened this issue Dec 4, 2023 · 1 comment
Open

Error handling Guid in ObjectExtensions.AddDataToField #93

Stefan6440 opened this issue Dec 4, 2023 · 1 comment
Assignees

Comments

@Stefan6440
Copy link

Stefan6440 commented Dec 4, 2023

idProperty.SetValue(item, data) throws an error when data is Guid
System.ArgumentException {"Object of type 'System.String' cannot be converted to type 'System.Guid'."}

My solution proposal :

image

@ttu ttu self-assigned this Dec 21, 2023
@ttu
Copy link
Owner

ttu commented Dec 21, 2023

Thanks for the issue!

Currently json-flatfile-datastore only supports int and string id-fields. I just noticed that this is not mentioned clearly in the documentation. I will update that.

I will check if we could add a support for Guid id-fields.
https://github.com/ttu/json-flatfile-datastore/compare/fix-guid-as-id?expand=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants