c# - Linq query how to select all columns -
I have a I Any other way I can get the output from the dataset using data This will give you the linq query that gives me the desired output: < New [] {c.Field & lt; string & gt; ("suburb"), c.Field & lt; string & gt; ("postcode") from
var data = (dtskip.AsEnumerable (c) ), Field C.
c.field & lt Instead of giving names such as; string & gt; ("postcode"), how can I select all the columns . Only outputable output from my output:
["Darwin", "0800", "NT", "2", "Darwinant", "A", " Delivery Area ", [" Elaa "," 810 "," NT "," 5 "," Elvint "," A "," Delivery Area "], [" BRINKIN "," 0810 ","
Linq query.
is a member of Detroit that gives the array as an array All the data in the row, the downside is that they are all returned in the form of the
object s but if all your columns are the same type then you can put the line
ItemArray Are the desired type (in this case
string )
dtskip.Rows.Cast & lt; DataRow & gt; () Select (R = & gt; r.ItemArray.Cast & lt; string & gt; ());
IEnumerable & lt; IEnumerable & lt; String & gt; & Gt; to work with.
Comments
Post a Comment