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

Type 'DataErrorInfoAdapter' is not defined #12

Closed
maciz84 opened this issue Mar 22, 2017 · 2 comments
Closed

Type 'DataErrorInfoAdapter' is not defined #12

maciz84 opened this issue Mar 22, 2017 · 2 comments
Labels

Comments

@maciz84
Copy link

maciz84 commented Mar 22, 2017

In version 3.0.0 the error Type 'DataErrorInfoAdapter' is not defined shows up but not in v2.0.2?

@maciz84
Copy link
Author

maciz84 commented Mar 22, 2017

Is this a bug or some new changes that I don't know about?

@pglazkov
Copy link
Owner

DataErrorInfoAdapter has been deprecated and removed from the library because the IDataErrorInfo interface is not supported in platforms other than full .NET, more specifically it is not supported in .NET Standard that the library is build on. However, there is another newer interface that has the same functionality but a bit more flexible: INotifyDataErrorInfo. You can find an example how to use the NotifyDataErrorInfoAdapter here: https://github.com/pglazkov/MvvmValidation/blob/master/Examples/FormValidationExample/Infrastructure/ValidatableViewModelBase.cs

If case you still want to continue using IDataErrorInfo and DataErrorInfoAdapter, you can just copy the implementation of that class to your solution from the earlier version of the library, it is pretty simple: https://github.com/pglazkov/MvvmValidation/blob/releases/2.0/MvvmValidation/DataErrorInfoAdapter.cs

@pglazkov pglazkov closed this as completed Apr 2, 2017
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

2 participants