Answers for "convert from data adapter to Ienumerable C#"

C#
0

convert from data adapter to Ienumerable C#

But if you do want to use a data table first, you could use LINQ:

var list = dt.AsEnumerable().Select(r => new Person() { 
    Name = (string) r["Name"], 
    Age = (int) r["Age"] }
).ToList()
Posted by: Guest on October-16-2020

Code answers related to "convert from data adapter to Ienumerable C#"

C# Answers by Framework

Browse Popular Code Answers by Language