数据库到dll [英] Database to dll

查看:108
本文介绍了数据库到dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使数据库成为dll文件.

请清楚地向我解释.

how to make the database as a dll file.

please explain me clearly

推荐答案

您无法将数据库制作为DLL文件.您可以将数据库访问层设置为DLL.创建一个类库,然后在该类库的类中编写数据库访问代码.编译它,您将得到一个dll.可以将此dll作为引用添加到您的应用程序中,并且可以调用dll类公开的方法来获取数据.
You cannot make database as DLL file. You can make your database Access Layer as a DLL. Create a class library and write your database access code in the classes of that class library. Compile it, you will get a dll. This dll can be added in your application as a reference and you can call the methods exposed by the classes of the dll to get the data.


这是不可能的.

如果您使用的是小型数据库(如小型Access数据库),则可以将其与应用程序一起安装.
That is not possible.

If you are using smaller sized databases (like a small Access one) etc you can probably install these along with your application.


这篇关于数据库到dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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