Ram Kumar
Ram Kumar

Reputation: 53

How to use "AsEnumerable()" on datatable in Azure function?

After getting the details from the DB in a [data-table], I am trying to convert it to Enumerable using "AsEnumerable()" though getting an error message. I think I added all the assemblies required. Following is the error I am getting. Not able to find anything, any help will be appreciated.

enter image description here

Upvotes: 1

Views: 363

Answers (1)

Marie Hoeger
Marie Hoeger

Reputation: 1331

Try referencing both "System.Data" and "System.Data.DataSetExtensions" (no need to reference Linq too).

enter image description here

Upvotes: 2

Related Questions