原文发布时间为:2011-05-17 —— 来源于本人的百度文章 [由搬家工具导入]
需要在 Context 中,重写 DbContext 中的 OnModelCreating 方法 进行 mapping 如下:
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Entity<TestDB_Category>()
.ToTable("TestDB.Category","dbo");
}