在vs2010中,unit test时,读取数据库中的字段时出错,代码: target.Detail.FirstName = System.Convert.ToString(TestContext.DataRow["FirstName"]);信息: Cannot apply indexing with [] to an expression of type 'System.Data.DataRow'查看http://msdn.microsoft.com/en-us/library/ms182527.aspx后,不知错在哪?谢谢各位先!