我正在使用RTM版本的Windows 8和VS 2012 Ultimate。我有一个MVC4项目使用sqlCe 4.0与代码第一实体框架模型。
型号很简单:
public class MyThing { public int MyThingId { get; set; } public int UserId { get; set; } public string Title { get; set; } public string Address { get; set; } public string Description { get; set; } public DateTime Date { get; set; } }
当我尝试用内置的脚手架创建一个新的控制器,我得到以下错误:
“Unable to retrieve Metadata for MyThing”
“Using the same DbCompiledModel to create contexts against different
types of database servers is not supported. Instead,create a
separate DbCompiledModel for each type of server being used.
如何让脚手架工作?