日期:2014-05-17 浏览次数:20886 次
List<Model> lst = new List<Model>();
foreach (DataRow dr in dt.Rows)
{
string[] strsName = dr["Name"].ToString().Split(',');
string[] strsPercent = dr["percent"].ToString().Split(',');
string strOid = dr["Oid"].ToString();
decimal intMoney = decimal.Parse(dr["Money"].ToString());
lst.AddRange(strsName.Select((t, i) => new Model
{
Name = t,
Percent = strsPercent[i],
&n