我正在尝试使用默认值填充 editorfor 字段。请帮忙
我的代码:
<div class="editor-label">
@Html.LabelFor(model => model.Country)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Country)
</div>
该模型是由实体框架通过我的 SQL 数据库创建的。
我正在尝试使用默认值填充 editorfor 字段。请帮忙
我的代码:
<div class="editor-label">
@Html.LabelFor(model => model.Country)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Country)
</div>
该模型是由实体框架通过我的 SQL 数据库创建的。