c# - Export an IQueryable Collection to Excel -
I have a bigger IQueryable, which I want to directly export to Excel for data dump, how do I do this?
I was trying to export it from Gridview and export it from there, which works if I only use one part of the data, but if I use full IQueryable, then some Not even happens.
This is a table with 4k rows and 70 or so columns in each row.
EDIT: If it is easy, then the CSV file will be cured!
Why not write the file directly? Use foreach on IQueryable , and write a CSV file line from the line.
Comments
Post a Comment