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

[QUESTION] Update syntax to update a subproperty #2542

Open
ssteiner opened this issue Sep 10, 2024 · 0 comments
Open

[QUESTION] Update syntax to update a subproperty #2542

ssteiner opened this issue Sep 10, 2024 · 0 comments
Labels

Comments

@ssteiner
Copy link

I have this entity

public class PhoneBookCategory
{
    public string Id { get; set; }

    public string Name { get; set; }

    public TestObject SubProp { get; set; }
}

public class TestObject
{
    public string StringProp { get; set; }

    public int? IntProp { get; set; }
}

How would I write an Update script that updates SubProp.StringProp?

This is actually for UpdateMany, and when I use a script like this:

{SubProp.IntProp: 7}

I'm getting a

LiteDB.LiteException: 'Unexpected token . in position 66.'

Also, would it be possible to set the entire SubProp with the script syntax somehow?

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

No branches or pull requests

1 participant