C#桌面应用程序问题 [英] C# Desktop Application Issue

查看:81
本文介绍了C#桌面应用程序问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,
我正在创建一个C#桌面应用程序,该应用程序可在任何地方的differnet系统上运行.所以我的问题是我将如何在本地为每个用户放置数据库.数据库
有许多存储过程和表.

请指导我.

感谢

Dear Friends,
I am creating a C# desktop application that will be run on differnet system any where. SO my problem is that how will i place the database for every user locally. the database
have many store procedures and tables.

Please guide me.

Thanks

推荐答案

您将数据库放置在中央服务器上.

如Simple.v所述,您将需要创建程序的int安装程序.但是,如果您的用户未在系统上安装数据库,则还必须安装该数据库,方法是告诉用户必须安装该数据库,或者以编程方式自行安装该数据库(如果您使用的数据库版本与
you place the database on a central server..


As Simple.v says you''ll need to do create the int the installer of your program. But if your users do not have a database installed on your system you''ll also have to install that one, either by telling the user they have to install it or installing a it yourself programmaticly, if your database comes in a version and with a license that allows it.


在Windows应用程序中,您需要使用项目安装程序类.
在该类中,您需要在安装时编写用于在本地系统中创建数据库的代码.
In windows application you need to take project installer class.
In that class you need to write the code for creation of database in local system while installing.


对此的最佳解决方案是使用SQlite,它完全用于您的目的.寻找.而且它产生的文件很小,因此很容易快速下载
the best solution to this would be to use SQlite, it is used alot for exactly the purpose your looking for. Also the files it produce''s are very small and therefore easily downloaded quickly


这篇关于C#桌面应用程序问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆