简体   繁体   English

用于Visual Studio的数据库设计器?

[英]Database Designer for Visual Studio?

I am working on a database project and the entire team is working within Visual Studio. 我正在做一个数据库项目,整个团队都在Visual Studio中工作。 I created a database project, and I suppose I was hoping that I could utilize UML diagramming (or something along the lines of MySQL Workbench ) so that I could "design" my database, and then auto-generate scripts. 我创建了一个数据库项目,我想我希望可以利用UML图表(或类似MySQL Workbench的东西)来“设计”数据库,然后自动生成脚本。 Unfortunately, at least from my cursory search, such a tool does not appear to exist within Visual Studio (I am using 2008 Professional). 不幸的是,至少从我的粗略搜索来看,这种工具似乎在Visual Studio中不存在(我正在使用2008 Professional)。

Is there something within VS that I am missing? VS中有我缺少的东西吗? If so, could you please point me to it? 如果是这样,您能指出我吗? Otherwise, what suggestions do you have for creating a database. 否则,您对创建数据库有什么建议。 I would like to be able to easily allow other developers to quickly create the database as well as put the files into source control . 我希望能够轻松地允许其他开发人员快速创建数据库并将文件放入源代码管理中 I'm envisioning designing the database via UML, and then, from there, everything is generated for me. 我打算通过UML设计数据库,然后从那里为我生成一切。

Thanks for any advice. 感谢您的任何建议。

Also, in VS 2008 Professional, there is a "Database Project" that you can make use of. 另外,在VS 2008 Professional中,您可以使用“数据库项目”。 It's sole purpose is to store database scripts that you can then put under source control. 唯一的目的是存储数据库脚本,然后将其置于源代码控制之下。 You can either write the scripts yourself, or use the designer. 您可以自己编写脚本,也可以使用设计器。 If using the designer, after you create and save the table, you can right-click on it in the Server Explorer and choose "Generate Create Script". 如果使用设计器,则在创建并保存表之后,可以在Server Explorer中右键单击它,然后选择“ Generate Create Script”。

http://blog.reamped.net/post/2008/05/Using-Database-Projects-for-Visual-Studio.aspx http://blog.reamped.net/post/2008/05/Using-Database-Projects-for-Visual-Studio.aspx

http://www.informit.com/articles/article.aspx?p=31764 http://www.informit.com/articles/article.aspx?p=31764

Visual Studio 2008 Team System database edition seems to do what you want. Visual Studio 2008团队系统数据库版本似乎可以满足您的要求。 here is the link 链接在这里

I am using 2008 Professional 我正在使用2008 Professional

Actually, database projects should not be available to you. 实际上,数据库项目对您不可用。 At least, I do not see any SQL2005 or SQL 2008 projects in my VS 2008 Pro. 至少,我在VS 2008 Pro中看不到任何SQL2005或SQL 2008项目。 You'd need the VS Database Edition or Team Suite for that functionality. 您需要VS Database Edition或Team Suite才能实现该功能。 Even so, it doesn't offer any graphical tools as far as I know. 即使这样,据我所知它也没有提供任何图形工具。 You can add database elements as script files and have it generate a deployment script for you. 您可以将数据库元素添加为脚本文件,并使其为您生成部署脚本。

You could also play with the Entity Framework 4 (requires VS 2010). 您还可以使用Entity Framework 4(需要VS 2010)。 There you have a graphical designer which will afterward generate a script for you. 那里有一个图形设计器,之后将为您生成一个脚本。

Alternatively, you could try the Sybase PowerDesigner . 或者,您可以尝试Sybase PowerDesigner Also a very powerful piece of software. 也是功能非常强大的软件。

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

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