简体   繁体   English

如何使用EF模型和SDF数据库生成数据库?

[英]How to generate a database with the EF model and SDF database?

I'm using Visual Studio Express 2012 for Windows Desktop. 我正在使用Windows Studio的Visual Studio Express 2012。 I've just added an empty database (.sdf) with a model (.edmx). 我刚刚添加了带有模型(.edmx)的空数据库(.sdf)。 I've filled the model and hit the Generate Database From Model. 我已经填写了模型,然后单击“从模型生成数据库”。 That added a Model1.edmx.sqlce. 这添加了Model1.edmx.sqlce。

How can I run this file against my database? 如何对我的数据库运行此文件? It displays as plain text... 它显示为纯文本...

Use Sql Server Compact Toolbox. 使用Sql Server Compact工具箱。 Can be downloaded on CodePlex . 可以在CodePlex上下载。

I think, Visual Studio Express version doesn't rocognise .sqlce (SQL Compact Edition) files. 我认为Visual Studio Express版本不会识别.sqlce(SQL Compact Edition)文件。 You need Microsoft SQL Server Management Studio Express. 您需要Microsoft SQL Server Management Studio Express。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM