The standard EditForm has a Context property. What does this property actually do and how should it be used?
The official docs mention EditContext. There is no mention of Context.
It provides the name you can use to reference the instance of the EditContext the EditForm holds. If you pass in a Model it will also have created it.
In the contrived example below I've added some rather ugly code to show how you could use it.
<EditForm Context="xxx" Model="_model">
@{
EditContext mycontext = xxx;
mycontext.Validate();
};
</EditForm>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With