简体   繁体   English

Visual Studio 2013中C#应用程序的数据库

[英]Database for C# applications in Visual Studio 2013

I am planning a Visual Studio 2013 C# app. 我正在计划一个Visual Studio 2013 C#应用程序。 When I need to add a local database, the option that I have is a .mdf file to be added. 当我需要添加本地数据库时,我拥有的选项是要添加的.mdf文件。

My question is: how to I deploy this application? 我的问题是:如何部署此应用程序? Should I have SQL Server Express on the client machine? 客户端计算机上应该有SQL Server Express吗? So how do I bundle SQL Server Express with the setup? 那么如何将SQL Server Express与安装程序捆绑在一起?

from my experience you need to install a SQL Server on your platform. 根据我的经验,您需要在平台上安装SQL Server。 The reason is for them to read the .mdf and ldf file. 原因是他们读取.mdf和ldf文件。

for your deployment process you need to place the database and log files to a location and change your connection string (.config file). 在部署过程中,您需要将数据库和日志文件放置到某个位置并更改连接字符串(.config文件)。

Hope that helps. 希望能有所帮助。 :) :)

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

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