使用ADO.Net时,每次数据库操作都要设置connection属性、建立connection、使用command、事务处理等,比较繁琐,有很多重复工作。能不能把这些繁琐的、常用的操作再封装一下,以更方便、安全地使用。下面这个类就是一种尝试:
using System;
using System.Data.SqlClient;
using System.Text;
using System.Data;
using System.Collections;
using System.Configuration;
public class DBAccess
{
///
///
private SqlCommand dbSelectCommandofAdapter;
///
///
///
///
///
///
///
///
///
///
///