C# 在MVC can';的模型文件夹中创建模型;“创建视图”窗口无法检测到

C# 在MVC can';的模型文件夹中创建模型;“创建视图”窗口无法检测到,c#,asp.net-mvc,asp.net-mvc-4,C#,Asp.net Mvc,Asp.net Mvc 4,我在MVC模型文件夹中创建模型: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace EducationMVC.Models { public class ScoreStudentPresentation { public string id { set; get; } public string Studen

我在MVC模型文件夹中创建模型:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace EducationMVC.Models
{
    public class ScoreStudentPresentation
    {
        public string id { set; get; }
        public string StudentNumber { set; get; }
        public string Name { set; get; }
        public string Family { set; get; }
        public string Score { set; get; }
        public string ConfirmScore { set; get; }
    }
}
因此,我创建了一个控制器来处理此模型。当我想使用向导窗口(即添加视图)创建此模型的列表时。在dropdownlist中,我找不到模型的名称ScoreStudentPresentation

我的模型文件夹中有几个模型,它们工作正常

我的控制器代码:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DomainClasses;
using EducationModel;
using EducationRepositor;


namespace EducationMVC.Controllers
{
    public class ScoreController : Controller
    {
        //
        // GET: /Score/
        private readonly ScoreRepository obj = new ScoreRepository();

        public ActionResult Index(string scheduleId)
        {
            var model = obj.GetStudentlistOfSchedule(scheduleId);
            return View(model);

        }
        public ActionResult Create()
        {
            return View("Create");

            // return View();
        }
        [HttpPost]
        public ActionResult Create(Lesson lesson)
        {
            obj.AddNewLesson(lesson);
            obj.Save();
            return RedirectToAction("Index", "Lesson");
        }
        public ActionResult Edit(int id)
        {

            return View(obj.FindLessonById(id));
        }

        [HttpPost]
        public ActionResult Edit(Lesson lesson)
        {

            if (ModelState.IsValid)
            {
                obj.Update(lesson);
                obj.Save();
            }
            return RedirectToAction("Index", "Lesson");
        }
        public ActionResult Delete(int id)
        {
            obj.RemoveLesson(obj.FindLessonById(id));
            obj.Save();
            return RedirectToAction("Index", "Lesson");

            // return View();
        }

    }
}
我该怎么办


致以最诚挚的问候

您在添加课程后是否构建了该项目?谢谢。我没有构建它。