基本的数据库操作类

Web.Config

 <connectionStrings>
  <add name="TestConn" connectionString="Data Source=Andy-NB;Initial Catalog=testDB;Persist Security Info=True;User ID=testID;Password=testPWD" providerName="System.Data.SqlClient"/>
 </connectionStrings>

类一:

 

Code

 

类二:

 

Code

 

posted on 2009-07-08 10:13  AndyCai  阅读(469)  评论(0编辑  收藏  举报

导航