1、我们在C#定义一个SqlConnection返回类型的GetConnection的方法。

3、此时就能在调用时直接对新建的SqlConnection对象直接实例化。

5、因此我们就能在这里新建一个SqlDataAdapter对象和DataTable对象。

时间:2024-10-12 01:04:08
1、我们在C#定义一个SqlConnection返回类型的GetConnection的方法。
3、此时就能在调用时直接对新建的SqlConnection对象直接实例化。
5、因此我们就能在这里新建一个SqlDataAdapter对象和DataTable对象。