2012年4月30日

山寨一个PetShop(Task003)——函数

摘要: 源代码:13033480群共享基本的数据库连接,已经很好地完成了数据库的基本操作。但,为了模块化,我们需要把具有一定功能的代码块,放到函数中;进而,再放到类中,放到类库里。【操作步骤】一、把数据库基本操作放到函数ExecuteReader()中,这个函数将来要放在类库DBUtility中的类SQLHelpe.cs里。using System;using System.Data;using System.Data.SqlClient;using System.Collections.Generic;using System.Configuration;using NetShop.Model;pu 阅读全文

posted @ 2012-04-30 21:53 WestGarden 阅读(141) 评论(0) 推荐(0) 编辑

导航