使用Access数据库作为嵌入式资源 [英] Use Access database as embedded resource

查看:222
本文介绍了使用Access数据库作为嵌入式资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人;


我需要创建一个简单的应用程序以输入数据并将其保存在Access数据库中;
我想要的是将访问数据库添加为应用程序中的嵌入式资源,以使其与应用程序可执行文件不可见,并将此内部数据库用作后端.我尝试将其添加到项目资源中,但是它采用的字节[]格式与保留原始格式的图像等不同.

有可能吗?有什么建议吗?

在此先感谢.........!

Dear All;


I need to create a simple application to enter data and save in access database;
What i want is to add the access database as an embedded resource in the application so that it is not visible along with the application executable and use this internal database as backend . I have tried adding it in project resources but it takes format of byte[] unlike image etc that retain original form...

Is it possible to do ? Any suggestions?

Thanks in Advance.........!

推荐答案

不,将任何读/写对象作为嵌入式资源嵌入是不正常的.
而是将其存储在程序数据文件夹中,必要时使用其他扩展名进行加密.
这里有一个技巧讨论如何将数据存储在正确的位置:我应该在哪里存储我的数据? [ ^ ]
No, it is not normal to embed any read/write object as an embedded resource.
Instead store it in the program data folder, under a different extension if necessary, and encrypted.
There is a Tip here that talks about storing data in the correct location: Where should I store my data?[^]


这篇关于使用Access数据库作为嵌入式资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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