读出来可以:result.ComPercent = myRead.GetValue(2).ToString()==""?0:float.Parse(myRead.GetValue(2).ToString()); 判断语句:xxxxxxxxxxxxx or ComPercent is null 在最后面添加