Связывание модели в ASP.NET MVC отлично, но оно следует за настройками локали. В моем локальном десятичном разделителе есть запятая (','), но пользователи также используют точку ('.'), Потому что они ленивы для переключения макетов. Я хочу, чтобы это реализовано в одном месте для всех полей decimal
в моих моделях.
Должен ли я реализовать свой собственный поставщик стоимости (или привязку Event Model) для типа decimal
или я пропустил какой-то простой способ сделать это?