![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
wangshiliang
这个作者很懒,什么都没留下…
展开
-
将DataRow转成指定类型的类,并返回这个类的对象(带值)
/// /// 将DataRow转换成指定类型 /// /// /// 实体类 /// private Object ConvertToEntity(DataRow pDataRow, Type pType) { Object entity = null;原创 2007-06-27 14:06:00 · 908 阅读 · 0 评论 -
SqlDataReader转成DataTable
protected DataTable GetDataRow(string strSql) { SqlConnection sqlConn = new SqlConnection("server=.;uid=sa;pwd=sa;database=documentData;"); SqlCommand sqlComm = new SqlCommand(str原创 2007-06-27 13:48:00 · 927 阅读 · 0 评论