dt 转 json 转实体

DataTable dt= s.ExecSqlQuery(sql).Tables[0];
            string json = JsonConvert.SerializeObject(dt);
            List<BoxHead> lst2 = JsonConvert.DeserializeObject<List<BoxHead>>(json);
原文地址:https://www.cnblogs.com/lacey/p/14954051.html