2013年4月17日
摘要: 一、添加模型右键单击Models文件夹,选择“添加”,然后选择“类”,输入类名“Movie”。为了能够使用DbContext和DbSet,你需要在文件的顶部添加语句using System.Data.Entity;View Code using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace MvcMovie.Models{ public class Movie { public int ID { get; set; } public... 阅读全文
posted @ 2013-04-17 22:58 欣静赏悦 阅读(302) 评论(0) 推荐(0) 编辑