As the title says, I defined my member, for example my Id, as an Observable Property using the CommunityToolKit.Mvvm package.
[ObservableProperty]
private int id;
But now I am trying to decorate my Observable Property with the [PrimaryKey,AutoIncrement] attributes from the SQLite extension. But I can't just write it like that cause we have no self-defined property, only the generated one.
Is there a way to add that annotation while it still is an ObservableProperty?
I Imagine it something like that:
[ObservableProperty]
[PrimaryKey, AutoIncrement]
private int id;