Excel (XLSX/XLS) data extraction plugin for the Unio library. Read strongly-typed data from Excel spreadsheets with automatic column mapping, sheet selection, and streaming support. Built on DocumentFormat.OpenXml for reliable, high-performance Excel processing.
$ dotnet add package Unio.ExcelExcel (XLSX/XLS) data extraction plugin for Unio.Core.
dotnet add package Unio.Core # Required: core library
dotnet add package Unio.Excel # Excel support
using Unio;
public class Employee
{
[Column("Name")]
public string Name { get; set; }
[Column("Department")]
public string Department { get; set; }
[Column("Salary")]
public decimal Salary { get; set; }
}
var unio = new Unio();
// Extract from XLSX - format is auto-detected
var employees = unio.Extract<Employee>("employees.xlsx");
// Stream large Excel files
await foreach (var emp in unio.ExtractAsync<Employee>("large-report.xlsx"))
{
Console.WriteLine($"{emp.Name}: {emp.Salary:C}");
}
[Column] attributeIAsyncEnumerable<T>