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

Use case scenario for INotifyPropertyChanged in generated DTOs? #1274

Closed
GreenMoose2 opened this issue Apr 13, 2018 · 1 comment
Closed

Use case scenario for INotifyPropertyChanged in generated DTOs? #1274

GreenMoose2 opened this issue Apr 13, 2018 · 1 comment

Comments

@GreenMoose2
Copy link

Hi,

When using NSwag.CodeGeneration.CSharp, the generated client DTOs by default implements INotifyPropertyChanged and array type is an ObservableCollection.

I am trying to understand the use case for this, are there any examples of concepts when the DTOs' INotifyPropertyChanged events are used?

Thanks.

@RicoSuter
Copy link
Owner

You can use these DTOs directly in XAML based apps with bindings and view models. In most cases this is not needed and you can use Poco instead of Inpc (class style) and change the used collection types...

In the next major version, we will change these defaults.

See #984

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

No branches or pull requests

2 participants