Web.config
<globalization uiCulture="en-US" culture="en-US" />
实体
[DisplayName("Price")]
public double Price { get; set; }
Create.cshtml
<div class="form-group">
@Html.LabelFor(model => model.Price, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Price, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Price, "", new { @class = "text-danger" })
</div>
</div>
当我添加产品价格时出现此错误。我该如何解决?谢谢。