![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码片段
come521
这个作者很懒,什么都没留下…
展开
-
JSON
string Json(DataTable dt) { if (dt == null && dt.Rows.Count == 0) return string.Empty; StringBuilder sb = new StringBuilder(); sb.Append("["); for (int原创 2009-06-08 19:50:00 · 337 阅读 · 0 评论 -
xml与数据库交互
把xml文件的数据插入数据库void SetMsg() { SqlConnection con = new SqlConnection("server=.;database=Students;uid=sa;pwd="); SqlCommand cmd = new SqlCommand(); cmd.Connection = con;原创 2009-06-13 14:01:00 · 742 阅读 · 0 评论