77 Identity filed reminder (Author) (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\LitAuthor\ViewModels\LitAuthorViewEformViewModel.cs
of ModelServicesPrismModule-project
find `InputToControls()`-method
and make sure that Identity filed is correctly defined with a default value
...
}
if(AuthorId == null) AuthorId = 0 ;
});
}