c# - database validation in WPF MVVM -
in mvvm implement simple validations in model class implementing idataerrorinfo question how can validate business rules in mvvm user exist, etc.. thinking implement business rules on save command, problem how can show error user in validation error template way idateerrorinfo show error
if use wpf 4.5 should take advantage of inotifydataerrorinfo
you want async validation here because need reach out database.
here nice articles background information:
wpf 4.5 – asynchronous validation https://anthymecaillard.wordpress.com/2012/03/26/wpf-4-5-validation-asynchrone/
wpf 4.5 – part 1 : asynchronous data validation http://www.jonathanantoine.com/2011/09/18/wpf-4-5-asynchronous-data-validation/
hth
Thanks for give us valuable information
ReplyDeleteWordPress Support Australia
WordPress Help