![]() |
VOOZH | about |
dotnet add package Purcell --version 2.2.0
NuGet\Install-Package Purcell -Version 2.2.0
<PackageReference Include="Purcell" Version="2.2.0" />
<PackageVersion Include="Purcell" Version="2.2.0" />Directory.Packages.props
<PackageReference Include="Purcell" />Project file
paket add Purcell --version 2.2.0
#r "nuget: Purcell, 2.2.0"
#:package Purcell@2.2.0
#addin nuget:?package=Purcell&version=2.2.0Install as a Cake Addin
#tool nuget:?package=Purcell&version=2.2.0Install as a Cake Tool
一个超高性能的强类型读写表格文件的ORM库,支持 .xls、.xlsx、.csv 格式,专为 .NET 设计,极致性能与易用性兼备。
.xls、.xlsx、.csv通过 NuGet 安装:
dotnet add package Purcell
Purcell 采用四段式版本号 (W.X.Y.Z),遵循以下规则:
指定特定版本安装:
dotnet add package Purcell --version 1.2.3.4
using PurcellLibs;
// 假设有一个 Person 类
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
}
// 读取 .xlsx 文件
var people = Purcell.Query<Person>("data.xlsx").ToList();
using PurcellLibs;
var people = new List<Person>
{
new Person { Name = "张三", Age = 18 },
new Person { Name = "李四", Age = 20 }
};
Purcell.Export(people, "output.xlsx");
await foreach (var person in Purcell.QueryAsAsync<Person>("data.xlsx"))
{
Console.WriteLine(person.Name);
}
Purcell.Query<T>(...):读取 Excel/CSV 到强类型对象集合Purcell.Export<T>(...):导出对象集合到 Excel/CSV详细 API 参考 Wiki 或源码注释。
欢迎 Issue、PR 和建议!请阅读 了解贡献流程。
MIT License © LileyZhao
如需更详细的用法、进阶特性或遇到问题,欢迎访问 项目主页 或提交 Issue。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.0 | 119 | 6/8/2026 |
| 2.1.1 | 222 | 12/29/2025 |
| 2.1.0 | 162 | 12/29/2025 |
| 2.0.5 | 451 | 5/12/2025 |
| 2.0.4 | 329 | 4/21/2025 |
| 2.0.3 | 305 | 4/21/2025 |
| 2.0.2 | 281 | 4/21/2025 |
| 2.0.1 | 312 | 4/18/2025 |
| 2.0.0.1 | 326 | 4/18/2025 |
| 2.0.0 | 331 | 4/16/2025 |
| 1.0.5 | 1,013 | 8/19/2023 |
| 1.0.4 | 353 | 8/19/2023 |
| 1.0.3 | 320 | 8/19/2023 |
| 1.0.2 | 449 | 3/1/2023 |
| 1.0.1 | 355 | 3/1/2023 |