Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

DataRow does not contains a defination for Fields #607

Closed
aajmot opened this issue Dec 15, 2017 · 1 comment
Closed

DataRow does not contains a defination for Fields #607

aajmot opened this issue Dec 15, 2017 · 1 comment

Comments

@aajmot
Copy link

aajmot commented Dec 15, 2017

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?

@weshaggard
Copy link
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants