0

我正在做一个项目,该项目需要我POCO classes使用Entity Framework Code First. 有很多实体关系和继承正在进行,并且很难仅通过查看代码来跟踪所有内容。现在,正如我们所知,Entity Framework Code First生成一个.mdf文件作为您的数据库,我正在考虑进行验证,数据库图会更好地为我服务。

我可以在这种情况下查看我的数据库图吗?我该怎么做?

4

1 回答 1

0

You could always point it to a SQL Server Express database - by default an MVC 4 project uses LocalDB but if you're more comfortable in management studio you can always create your own database and change the connection string to that.

Also from memory I believe you can also attach an mdf file in management studio but may have trouble while the application is running. But I could be thinking of something else there.

于 2013-04-04T23:32:13.647 回答