我需要一个结合两个实体模型的视图。我创建了一个如下所示的类:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FSDS.DataModels;
namespace FSDS.WebUX.Models
{
    public partial class ChainandJob
    {
        public ScheduleJobChain chain {get;set;} //this object has 6 properties
        public ScheduleJob job {get;set;} //this object has 8 properties.
    }
}
我使用“创建”脚手架创建了一个新的局部视图。这就是它给我的:
@model FSDS.WebUX.Models.ChainandJob
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>ChainandJob</legend>
        <p>
             <input type="submit" value="Create" />
        </p>
    </fieldset>
 }
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
所有的领域在哪里?