I'm developing a web app using Asp.Net Core 2.1 and Code First.I've got a bunch of properties of type decimal and decorated them with the following attribute:
[DisplayFormat(DataFormatString = "{0:C0}", ApplyFormatInEditMode = true)]The problem is when the form goes in edit mode,the client validation throws the following error since the input field contains the currency symbol:
The field must be a number.
How can I tell asp.net core to treat an input field with currency symbol as decimal value?