Info
Version: | 1.0.3 |
Author(s): | Microsoft/Daniel M. Porrey/Sergey Berezovskiy |
Last Update: | Tuesday, April 28, 2015 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/LinqToDataTable |
Install
Install-Package LinqToDataTable
dotnet add package LinqToDataTable
paket add LinqToDataTable
LinqToDataTable Download (Unzip the "nupkg" after downloading)
Is idea to help create datasource for library like EPPlus
This code has been taken from http://msdn.microsoft.com/en-us/library/bb669096.aspx.
Together with: http://w3facility.org/question/how-to-convert-iqueryable-to-datatable/
This is an extension method, should be used like
using LINQtoDataTable;
....
{
System.Data.DataTable MyTable = MyProducts.Where(x=>x.Price>10).CopyToDataTable();
}.