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