98 Identity filed reminder (Book) - chempkovsky/CS2WPF-and-CS2XAMARIN GitHub Wiki
- Note: Identity issue
- Since BookId is an Identity field we set InputType New=ReadOnly
- On the other hand BookId is a required field. It means BookId should be defined before sending to the Backend.
- To make sure that BookId is defined with a default value open the file:
Literature\LitBook\ViewModels\LitBookViewEformViewModel.cs
of ModelServicesPrismModule-project
find `InputToControls()`-method
and make sure that Identity filed is correctly defined with a default value
...
}
if(BookId == null) BookId = 0 ;
});
}