以前只用一种数据库,倒也无所谓,但是再数据库切换的时候,发现代码差不多呀. 最初,两种数据库,大不了写两个SqlHelper,但是多了也就发现代码重用率太低了吧. 因此,下面的SqlHelper诞生了. using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; namespace WangSql…