来自a.dll的MySQL [英] Mysql from a.dll

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

问题描述

好吧,我想做的是制作一个.dll,将我的所有mysql信息保存在.dll文件中,这样我就可以在需要时连接它,并运行选择并插入命令和所有需要的内容,

是否有人知道如何执行此操作或我可以尝试的任何教程,因为我不知道如何启动此方法

Okay what i want to di is Make a .dll that holds all my mysql info in a .dll file so i can have it Connect when i need to and run select and insert comands and all that when i need to,

Does anyone have any knowledge about how to do this or any tutorials i could possibly try, because i have no clue how to even start this

推荐答案

我以为您"熟悉解决方案,项目,参考文献和类吗?如果没有,您将需要熟悉这些概念,然后再处理此项目.

了解这些内容后,任务将非常简单.

下载并参考 .NET MySQL连接器 [
I assume you''re familiar with solutions, projects, references and classes? If not, you''ll need to familiarize yourself with those concepts before you tackle this project.

Once you understand those, the task is pretty straightforward.

Download and reference the .NET Connector for MySQL[^].

Then, simply add a DLL project to your solution and reference the library you''ve downloaded.

Add classes to the DLL project as required. Add methods to the classes that expose the data you''re trying to get at.

Cheers.


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

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