Migrated repository
Go to file
wei 1b59b4235c - Dynamic Query support A,B,C.. column name key
- Support insert empty Rows between rows
2021-03-13 22:39:20 +08:00
docs - Dynamic Query support A,B,C.. column name key 2021-03-13 22:39:20 +08:00
drafts 【Reader】XmlReader Read Sheet.linq 2021-03-13 00:52:01 +08:00
samples/xlsx - Dynamic Query support A,B,C.. column name key 2021-03-13 22:39:20 +08:00
src - Dynamic Query support A,B,C.. column name key 2021-03-13 22:39:20 +08:00
.gitattributes .gitattributes 2021-03-03 13:26:37 +08:00
.gitignore Add: VS MiniExcel Project 2021-03-03 13:06:45 +08:00
LICENSE.md Apache License 2.0 2021-03-10 08:30:47 +08:00
README.md - Dynamic Query support A,B,C.. column name key 2021-03-13 22:39:20 +08:00

NuGet

Features

  • Support IEnumerable Lazy & Real Step By Step one row read not until all rows data read in memory e.g: Comparison of MiniExcel Query and ExcelDataReader of Reading Large Xlsx File
  • Mini (DLL Size Only 20KB) and Easy to use.
  • Support .NET Standard 2.0/.NET 4.6/.NET 5
  • Without Any Third Party Library Dependencies
  • Support Anonymous Types,Dapper Dynamic Query,List/Array/Set/Enumrable,DataTable,Dictionary

Installation

You can install the package from NuGet

Execute a query and map it to a list of dynamic objects without using head

MiniExcel 1
Github 2
using (var stream = File.OpenRead(path))
{
    var rows = stream.Query().ToList();
                
    Assert.Equal("MiniExcel", rows[0].A);
    Assert.Equal(1, rows[0].B);
    Assert.Equal("Github", rows[1].A);
    Assert.Equal(2, rows[1].B);
}

Execute a query with first header row

Column1 Column2
MiniExcel 1
Github 2
using (var stream = File.OpenRead(path))
{
    var rows = stream.Query(useHeaderRow:true).ToList();

    Assert.Equal("MiniExcel", rows[0].Column1);
    Assert.Equal(1, rows[0].Column2);
    Assert.Equal("Github", rows[1].Column1);
    Assert.Equal(2, rows[1].Column2);
}

TODO

Please Check Issues · todo

Release Notes

Please Check Release Notes