[英]Database using Visual Studio C# (Web Application)
I have to create implement a database in one of my projects. 我必须在我的一个项目中创建实现数据库。 I'm using Visual Studio and coding in C# The problem I'm experiencing is that I cannot find information on how to create a database with a web application as well as which database program would be best to use.
我正在使用Visual Studio并在C#中进行编码我遇到的问题是我找不到有关如何使用Web应用程序创建数据库以及最好使用哪种数据库程序的信息。
Any documentation explaining how to go about making and using the database will be appreciated. 任何解释如何制作和使用数据库的文档将不胜感激。
Thanks in advance 提前致谢
Sign up to Windows Azure. 注册Windows Azure。 You get a free trial and a nice GUI to create databases and web apps.
您将获得免费试用版和一个漂亮的GUI,用于创建数据库和Web应用程序。
Then you can use some basic SQL to start interacting with the database 然后,您可以使用一些基本的SQL开始与数据库进行交互
Sql databases are much easier to use with Visual studio. SQL数据库更容易与Visual Studio一起使用。
Following articles could help you get started with that. 以下文章可以帮助您入门。
SQL Server Database Development in Visual Studio Visual Studio中的SQL Server数据库开发
EDIT: After comment about OP the following link could be helpful. 编辑:关于OP的评论后,以下链接可能会有所帮助。
How to: Access SQL Server Using Predetermined Credentials 如何:使用预定的凭据访问SQL Server
Edit: - Look at the answer provided Here Add new table to EF 编辑:-查看此处提供的答案将新表添加到EF
Look into entity framework and how to create a database, there are 3 ways you can create a database for web applicaitons, the typical workflows are: 查看实体框架以及如何创建数据库,可以通过3种方式为Web应用程序创建数据库,典型的工作流程为:
For more information you can look at the tutorial videos for building applications with MVC 4
: 有关更多信息,您可以观看使用
MVC 4
构建应用程序的教程视频:
Developing ASP.NET MVC 4 Web Applications Jump Start - Microsoft 开发ASP.NET MVC 4 Web应用程序快速入门 -Microsoft
Building Applications with ASP.NET MVC 4 - Pluralsight 使用ASP.NET MVC 4构建应用程序 -Pluralsight
I guess i may have been a bit vague in what I wanted but thanks nonetheless to everyone who helped put me on the right track. 我想我可能对我想要的东西有点含糊,但是还是感谢所有帮助我走上正确道路的人。 I've got the basic connection down and am currently working through different queries.
我的基本连接已经断开,目前正在处理不同的查询。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.