简体   繁体   English

使用Visual Studio C#(Web应用程序)的数据库

[英]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应用程序创建数据库,典型的工作流程为:

  • Database First 数据库优先
  • Model First 模特第一
  • Code First 代码优先

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.

相关问题 Visual Studio Web应用程序使用C#将数据发送到SQL数据库的问题(cmd.ExecuteNonQuery();) - Visual Studio Web Application using C# to send data to a SQL database issues (cmd.ExecuteNonQuery();) Visual Studio 发布与内置发布(c# Web 应用程序) - Visual Studio Publish vs Build in release (c# Web Application) Web解决方案中的Visual Studio C#调试控制台应用程序 - Visual Studio C# debug console application that is part of web solution 如何在Visual Studio 2010中向C#Web应用程序添加计时器 - How to add a timer to c# Web Application in Visual studio 2010 身份验证如何应用于在Visual Studio 2010中使用C#的Web应用程序的所有aspx页面? - How does the authentication apply to all aspx pages for a Web Application using C# in Visual Studio 2010? 如何在 Visual Studio 2019 中使用 Xamarin Forms(UWP) 和 C# 创建 Web 应用程序 - How to create Web application using Xamarin Forms(UWP) and C# in visual studio 2019 在visual studio professional 2010上使用试用版部署Web应用程序c# - Deploying a web application using the trial version on visual studio professional 2010 c# 如何使用Visual Studio在C#应用程序中发布Access数据库? - How do I publish an Access database with my C# application using Visual Studio? 发布应用程序后c#Visual Studio产生数据库错误 - c# Visual studio after pubish application generate errors with database 使用Visual Studio C#在Management Studio中编辑数据库 - Edit database in management studio using visual studio c#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM