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

Improve warning message for ignored property with attribute #3352

Closed
papafe opened this issue Jun 19, 2023 · 0 comments · Fixed by #3354
Closed

Improve warning message for ignored property with attribute #3352

papafe opened this issue Jun 19, 2023 · 0 comments · Fixed by #3354
Assignees

Comments

@papafe
Copy link
Contributor

papafe commented Jun 19, 2023

An user on the forum had a property defined like the following:

    [PrimaryKey]
    private ObjectId _id { get; } = ObjectId.GenerateNewId();

That was raising the warning warning : Fody/Realm: SharedWith.Id has [MapTo], [PrimaryKey] applied, but it’s not persisted, so those attributes will be ignored.

The user did not understand what was the cause of this warning. We should probably improve the message on this error, to make it more clear about the reason for it.

@nirinchev nirinchev self-assigned this Jun 19, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants