Json与DataSet转化
2021-03-12 23:30
标签:column developer create turn name cli dep json 数据表 DataSet是数据集,DataTable是数据表,DataSet存储多个DataTable。DataSet和DataTable像是专门存储数据的一个容器,在你查询数据库得到一些结果时可以存在里面。 Json与DataSet转化 标签:column developer create turn name cli dep json 数据表 原文地址:https://www.cnblogs.com/xxhao/p/12823385.htmlC# DataSet与DataTable的区别和用法
public static string CreateJsonParameters(DataTable dt)
{
/* /****************************************************************************
* Without goingin to the depth of the functioning of this Method, i will try to give an overview
* As soon as this method gets a DataTable it starts to convert it into JSON String,
* it takes each row and in each row it grabs the cell name and its data.
* This kind of JSON is very usefull when developer have to have Column name of the .
* Values Can be Access on clien in this way. OBJ.HEAD[0].