I am trying to create a simple task manager solution based on the Nerd Dinner tutorial
weblogs.asp.net/scottgu/archive/2009/04/28/free-asp-net-mvc-nerddinner-tutorial-now-in-html.aspx.
EDIT: I have removed the http:// on these urls because I have not got enough rep to add links into a post.
I have built my model as shown here: nerddinnerbook.s3.amazonaws.com/Part3.htm It is identical except that Dinner is a task and RSVP is a project.
Relationship task.projectId -> project.projectId I have more fields in these tables but I have kept the public partial task class in the model simple so far to match the tutorial.
My question is that when I try to add a new view and in the dialog I select "strongly typed view" my model class for the task does not show up in the drop down, anyone know why??
Probably a bit vague, i am just trying to get some ideas on why this could be happening.
I thought maybe my namespace was incorrect somewhere or my class was not public but it is.
I have got a reference to my repository in my controller by doing TaskRepository taskRepository = new TaskRepository(); and the controller has a using reference to TaskManager.Models;
All confusing me.
我不知道对话框是如何选择类的(除了它需要干净的编译),但是您可以选择任意随机类,然后编辑生成的aspx的第一行以替换您喜欢的类。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.