資源簡介
C#連接MySql服務器,并進行增刪改查的操作
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;
namespace?MySQLDB
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????MySqlDBConnector.InitializeDatabaseParameters(“localhost“?“root“?“123456“?“test111“);
????????????using?(MySqlDBConnector?dbConnection?=?new?MySqlDBConnector())
????????????{
????????????????dbConnection.Connect();
????????????????string?sql?=?“insert?into?testtable?values?(465)“;
????????????????object?output?=?dbConnection.E
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.?????41472??2019-04-24?16:08??MysqlTestDemo\.vs\MysqlTestDemo\v15\.suo
?????文件??????????0??2019-04-24?16:07??MysqlTestDemo\.vs\MysqlTestDemo\v15\Server\sqlite3\db.lock
?????文件?????593920??2019-04-24?16:08??MysqlTestDemo\.vs\MysqlTestDemo\v15\Server\sqlite3\storage.ide
?????文件??????32768??2019-04-24?16:08??MysqlTestDemo\.vs\MysqlTestDemo\v15\Server\sqlite3\storage.ide-shm
?????文件??????12392??2019-04-24?16:08??MysqlTestDemo\.vs\MysqlTestDemo\v15\Server\sqlite3\storage.ide-wal
????..A..H.?????26624??2019-04-24?16:07??MysqlTestDemo\.vs\TooltipTest\v15\.suo
?????文件??????????0??2019-04-24?16:06??MysqlTestDemo\.vs\TooltipTest\v15\Server\sqlite3\db.lock
?????文件?????593920??2019-04-24?16:07??MysqlTestDemo\.vs\TooltipTest\v15\Server\sqlite3\storage.ide
????..A..H.?????68608??2019-04-24?16:01??MysqlTestDemo\MysqlTestDemo\.vs\TooltipTest\v15\.suo
?????文件??????????0??2019-01-04?16:59??MysqlTestDemo\MysqlTestDemo\.vs\TooltipTest\v15\Server\sqlite3\db.lock
?????文件?????606208??2019-04-24?16:02??MysqlTestDemo\MysqlTestDemo\.vs\TooltipTest\v15\Server\sqlite3\storage.ide
?????文件????????189??2019-01-03?10:40??MysqlTestDemo\MysqlTestDemo\App.config
????I.A....?????61440??2018-12-14?13:33??MysqlTestDemo\MysqlTestDemo\bin\Debug\Harman.Utility.dll
????I.A....????356352??2019-04-15?13:31??MysqlTestDemo\MysqlTestDemo\bin\Debug\MySql.Data.dll
?????文件??????14848??2019-04-24?16:01??MysqlTestDemo\MysqlTestDemo\bin\Debug\MysqlTestDemo.exe
?????文件????????189??2019-01-03?10:40??MysqlTestDemo\MysqlTestDemo\bin\Debug\MysqlTestDemo.exe.config
?????文件??????30208??2019-04-24?16:01??MysqlTestDemo\MysqlTestDemo\bin\Debug\MysqlTestDemo.pdb
?????文件??????69632??2006-03-22?22:42??MysqlTestDemo\MysqlTestDemo\bin\Debug\Nini.dll
?????文件??????23168??2019-01-03?10:44??MysqlTestDemo\MysqlTestDemo\bin\Debug\TooltipTest.vshost.exe
?????文件????????189??2019-01-03?10:40??MysqlTestDemo\MysqlTestDemo\bin\Debug\TooltipTest.vshost.exe.config
?????文件????????490??2014-01-13?21:31??MysqlTestDemo\MysqlTestDemo\bin\Debug\TooltipTest.vshost.exe.manifest
?????文件????????903??2019-04-24?16:01??MysqlTestDemo\MysqlTestDemo\Form1.cs
?????文件???????2243??2019-04-24?16:01??MysqlTestDemo\MysqlTestDemo\Form1.Designer.cs
?????文件???????6013??2019-04-24?16:01??MysqlTestDemo\MysqlTestDemo\Form1.resx
????I.A....?????15855??2019-04-24?16:01??MysqlTestDemo\MysqlTestDemo\MySqlDBConnector.cs
?????文件???????4476??2019-04-24?16:01??MysqlTestDemo\MysqlTestDemo\MysqlTestDemo.csproj
?????文件???????1464??2019-04-24?11:19??MysqlTestDemo\MysqlTestDemo\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????7202??2019-04-24?16:06??MysqlTestDemo\MysqlTestDemo\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????180??2019-04-24?16:01??MysqlTestDemo\MysqlTestDemo\obj\Debug\MySQLDB.Form1.resources
?????文件?????????42??2019-04-24?16:06??MysqlTestDemo\MysqlTestDemo\obj\Debug\MysqlTestDemo.csproj.CoreCompileInputs.cache
............此處省略46個文件信息
- 上一篇:C# winform導航條
- 下一篇:企業電話客服系統源碼+access數據庫
評論
共有 條評論