こんにちは、データベースからのデータを表示する Web ページを作成しています。このような:
結果が表示されないのはなぜですか? 一番、
@model Orchard.Staff.Models.StaffPart
<fieldset>
<legend>Map Fields</legend>
<div class="editor-label">
@Html.LabelFor(model => model.StaffID)
</div>
<div class="editor-field">
@Html.DisplayFor(model => model.StaffID)
@Html.ValidationMessageFor(model => model.StaffID)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.CName)
</div>
<div class="editor-field">
@Html.DisplayFor(model => model.CName)
@Html.ValidationMessageFor(model => model.CName)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.EName)
</div>
<div class="editor-field">
@Html.DisplayFor(model => model.EName)
@Html.ValidationMessageFor(model => model.EName)
</div>