67 Identity filed reminder (Publisher) (Wpf, Xamarin) - chempkovsky/CS2WPF-and-CS2XAMARIN GitHub Wiki

  • Note: Identity issue
    • Since PublisherId is an Identity field we set InputType New=ReadOnly
    • On the other hand PublisherId is a required field. It means PublisherId should be deffined before sending to the Backend.
    • To make sure that PublisherId is defined with a default value open the file:

Literature\LitPublisher\ViewModels\LitPublisherViewEformViewModel.cs of ModelServicesPrismModule-project

 find `InputToControls()`-method
 and make sure that Identity filed is correctly defined with a default value
        ...
                }
                if(PublisherId == null)  PublisherId =  0 ;
            });
        }