C#中 定义DataTable

DataTable dt= new DataTable();
dtsnt1.Columns.Add("id", typeof(string));//id 是指列名,typeof(string)是指属性
dtsnt1.Columns.Add("code", typeof(string));
c#
60 views
Comments
登录后评论
Sign In