public DataTable ToDataTable<T>(List<T> entities)
{
string str = JsonConvert.SerializeObject(entities);
DataTable dt = str == null ? null : JsonConvert.DeserializeObject<DataTable>(str);
return dt;
}
list转dataTable
最新推荐文章于 2024-07-09 17:28:16 发布