2021年3月18日星期四

What does this erorr message mean?

If I told you that "You require sunglasses or an umbrella but not both." you would have no idea if it is raining or not. When running my Blazor web application I get "EditForm requires a Model parameter, or an EditContext parameter, but not both". My code has:

<EditForm Model="@order" OnSubmit="OnSubmit">  

so as far as I know I am only using a Model parameter. I think use of the word 'Or' in error messages should be banned. My guess is that something has auto generated EditContext. Has anybody got any idea where to look?

https://stackoverflow.com/questions/66700605/what-does-this-erorr-message-mean March 19, 2021 at 07:38AM

没有评论:

发表评论