日期:2014-05-17 浏览次数:20647 次
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Entity;
namespace MicroBlogs.Model
{
public class WeiboContext : DbContext //DbContext下面有出错提示,我明明已经引用了System.Data.Entity啊
{
public DbSet<Task> tasks { get; set; }//DbSet也是一样通不过编译
public DbSet<User> users { get; set; }
public DbSet<Weibo> weibos { get; set; }
}
}