Standard: DataRow does not contains a defination for Fields

Created on 15 Dec 2017  路  1Comment  路  Source: dotnet/standard

I am using Dot Net Standard 2.0 and I am trying to get the code below but showing error Does not contain definition for Fields.

 foreach (DataRow dr in dt.Rows)
            {
               int i= dr.Field<Int32>("Id");
            }

then what to use for similar kind of requirement?

Most helpful comment

That method is an extension method that lives in DataSetExtensions library. We have a preview of it on our myget feed at https://dotnet.myget.org/feed/dotnet-core/package/nuget/System.Data.DataSetExtensions.

>All comments

That method is an extension method that lives in DataSetExtensions library. We have a preview of it on our myget feed at https://dotnet.myget.org/feed/dotnet-core/package/nuget/System.Data.DataSetExtensions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juscelior picture juscelior  路  3Comments

KexyBiscuit picture KexyBiscuit  路  3Comments

virzak picture virzak  路  4Comments

ghost picture ghost  路  4Comments

Jmales picture Jmales  路  3Comments