Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

INotifyPropertyChanged removed - Help needed #322

Open
MattEvansA45 opened this issue Aug 30, 2022 · 1 comment
Open

INotifyPropertyChanged removed - Help needed #322

MattEvansA45 opened this issue Aug 30, 2022 · 1 comment
Labels
question Requesting information

Comments

@MattEvansA45
Copy link

Hi

I've returned to a c# project which used this framework and on updating to the latest versions i can now see that INotifyPropertyChanged has been removed, now none of the changes i make through my app are getting handled correctly when trying to save records. It treats everthing as a new record and tries to insert duplicates into the datatabse.

Looking at the difference in generated code vs the previous version i can see that previously for every attribute in the model there was get/set code generated and OnPropertyChanged. Is it now the case i'll have to manually create this for all the attributes in the model in a custom partial class file? if so that seems a bit of a step backwards is it not?

If anyone could point me at an example of what I'd need to do it would be very much appreciated as I'm only a hobby coder so I'm when a fundamental change like that happens I'm pretty stumped as to how to fix it.

Many thanks for any assistance

Repository owner deleted a comment from MichaelSawczyn-AWH Aug 30, 2022
@msawczyn
Copy link
Owner

Sounds like the AutoProperty default property of the designer surface changed. Check to see if it's set to false - that will get you the getters and setters once you regenerate.

@msawczyn msawczyn added the question Requesting information label Aug 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Requesting information
Projects
None yet
Development

No branches or pull requests

2 participants