Access 通用数据访问类(asp.net 2.0 c#)
|
日期:2006年7月23日 作者: 查看:[大字体
中字体 小字体]
|
comm.CommandType = CommandType.Text; comm.CommandText = sqlstr; da.SelectCommand = comm; da.Fill(dt); } catch (Exception e) { throw new Exception(e.Message); } finally { closeConnection(); } return dt; }//返回指定sql语句的datatable public static void dataTable(string sqlstr, ref DataTable dt) { OleDbDataAdapter da = new OleDbDataAdapter(); try { openConnection(); comm.CommandType = CommandType.Text; comm.CommandText = sqlstr; da.SelectCommand = comm; da.Fill(dt); } catch (Exception e) { throw new Exception(e.Message); } finally { closeConnection(); } }//返回指定sql语句的datatable
public static DataView dataView(string sqlstr) { OleDbDataAdapter da = new OleDbDataAdapter();
上一篇:无需Photoshop等软件 上网也能改图片
下一篇:asp.net 生成图片验证码
|
| Access 通用数据访问类(asp.net 2.0 c#) 相关文章: |
|
|
|
| Access 通用数据访问类(asp.net 2.0 c#) 相关软件: |
|
|
|