using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
namespace MvcApplication2.Models
{
public class student
{
public int sno { get; set; }
public string sname{get;set;}
}
public class studentDBContext : DbContext
{
public DbSet<student> Movies { get; set; }
}
}
网上教程都是这样的 orm 形式,问题是 DbContext根本找不到命名空间
using System.Data.Entity; 也不行 。。。。。
所以。。