📅  最后修改于: 2022-03-11 15:04:56.655000             🧑  作者: Mango
change the datatype for every column of datatable and on sql side by using
convert or cast function you can change it to another type
DataTable dt = new DataTable();
dt.columns.Add(1, typeof(string));
dt.columns.Add(2, typeof(string));