本文转自:http://de.cel.blog.163.com/blog/static/5145123620110181003903/类似于SQLHelper,只是这里引用的是MySql.Data类库,而不是System.Data.SqlClient;因为.Net框架里面并不包 含些类库,好在咱们有...
分类:
数据库 时间:
2015-12-01 16:29:23
阅读次数:
271
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Text;using System.Data;using System.Collections;using My...
分类:
数据库 时间:
2015-11-11 14:53:34
阅读次数:
278
class Program { static void Main(string[] args) { //事物的回滚 using(MySqlConnection conn = MySqlHelper.CreateConnec...
class MySqlHelper { //从配置文件读取连接字符串 private static readonly string connstr = ConfigurationManager.ConnectionStrings["connStrs"].Conne...
分类:
数据库 时间:
2015-09-05 17:49:40
阅读次数:
267
1. MySQL.Data.dll http://files.cnblogs.com/files/lwngreat/MySql.Data.rar2.在工程中添加引用 3. 使用 MysqlHelper.cs 方便MySQL的应用/***********************************...
分类:
数据库 时间:
2015-08-09 20:33:20
阅读次数:
266
主要封装为MySqlHelper类namespace CiWong.LearningLevelApi.MySqlHelp{ /// /// MySqlHelper 类是基于.net框架开发的数据库操作类 /// public class MySqlHelper { ...
分类:
数据库 时间:
2015-07-27 18:09:05
阅读次数:
124
配置好Web.config,在configuration里面添加节点connectionStrings: 写好MySqlHelper:using System;using System.Collections.Generic;using Sy...
分类:
数据库 时间:
2015-07-20 15:41:29
阅读次数:
125
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;
using System.Data;
class MySqlHelper:IDisposable
{
private MySqlConnecti...
分类:
数据库 时间:
2015-05-30 18:21:34
阅读次数:
172
public class MySqlHelper { private string ConnString; public MySqlHelper(string connectionString) { ConnString ...
分类:
数据库 时间:
2015-05-25 20:17:54
阅读次数:
114
MySqlHelper类 /// ///MySql操作类 /// public abstract class MySqlHelper { //数据库连接字符串 public static string Conn = "Database='...
分类:
数据库 时间:
2015-05-19 18:37:29
阅读次数:
230