mirror of
https://gitee.com/dotnetchina/MiniExcel.git
synced 2024-11-29 18:38:08 +08:00
- namespace MiniExcel to MiniExcelLibs
- rename MiniExcelHelper to MiniExcel
This commit is contained in:
parent
1973a35122
commit
012f6a0349
@ -2,7 +2,18 @@
|
||||
|
||||
## Release Notes
|
||||
|
||||
### 0.1.0-beta
|
||||
### 0.0.3-beta
|
||||
- MiniExcelHelper.Create value type change to ICollection
|
||||
- MiniExcelHelper.Create Support DataTable,Dapper Dynamic Query,Dictionary
|
||||
- Encode XML Value `' " > < &`
|
||||
- Support Rear<Type>("input.xlsx")
|
||||
|
||||
### 0.0.2-beta
|
||||
- Remove System.IO.Packaging.Package Dependency, and replaced by System.IO.Compression.ZipArchive
|
||||
- Add MiniExcelHelper.Read Method
|
||||
|
||||
### 0.0.1-beta
|
||||
- Add MiniExcelHelper.Create
|
||||
|
||||
### 0.0.0
|
||||
- Init
|
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.30804.86
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MiniExcel", "MiniExcel\MiniExcel.csproj", "{097903C9-1F81-4427-B4C8-530CB59687B8}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MiniExcelLibs", "MiniExcel\MiniExcelLibs.csproj", "{097903C9-1F81-4427-B4C8-530CB59687B8}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2AFABF2E-D6C3-4983-B43A-76ADA2BB2876}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace MiniExcel
|
||||
namespace MiniExcelLibs
|
||||
{
|
||||
internal static class DefualtXml
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace MiniExcel
|
||||
namespace MiniExcelLibs
|
||||
{
|
||||
using System.Xml.Linq;
|
||||
internal static class ExcelNamespaces
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace MiniExcel
|
||||
namespace MiniExcelLibs
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
@ -9,7 +9,7 @@
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Xml.Linq;
|
||||
public static partial class MiniExcelHelper
|
||||
public static partial class MiniExcel
|
||||
{
|
||||
private static Dictionary<string, ZipPackageInfo> GetDefaultFiles() => new Dictionary<string, ZipPackageInfo>()
|
||||
{
|
@ -4,7 +4,13 @@
|
||||
<Title>MiniExcel</Title>
|
||||
<Product>MiniExcel</Product>
|
||||
<PackageTags>excel;xlsx;micro-helper;mini;openxml;helper;</PackageTags>
|
||||
<Description>A high performance Micro-Helper without any third party library and supporting Excel xlsx create and read etc..</Description>
|
||||
<Description>
|
||||
A high performance Micro-Helper without any third party library and supporting Excel xlsx create and read etc..
|
||||
|
||||
Github : https://github.com/shps951023/MiniExcel
|
||||
Issues : https://github.com/shps951023/MiniExcel/issues
|
||||
Todo : https://github.com/shps951023/MiniExcel/labels/todo
|
||||
</Description>
|
||||
<Authors>ITWeiHan</Authors>
|
||||
<Copyright>©2021 WeiHan Lin</Copyright>
|
||||
<license>https://raw.githubusercontent.com/shps951023/MiniExcel/master/LICENSE.md</license>
|
||||
@ -13,8 +19,8 @@
|
||||
<RepositoryUrl>https://github.com/shps951023/MiniExcel</RepositoryUrl>
|
||||
<PackageIconUrl>https://raw.githubusercontent.com/shps951023/ImageHosting/master/img/2019-01-17.13.18.32-image.png</PackageIconUrl>
|
||||
<TargetFrameworks>net461;netstandard2.0;net5.0</TargetFrameworks>
|
||||
<Version>0.0.2-beta</Version>
|
||||
<PackageReleaseNotes></PackageReleaseNotes>
|
||||
<Version>0.0.3-beta</Version>
|
||||
<PackageReleaseNotes>Please Check [Release Notes](https://github.com/shps951023/MiniExcel/tree/master/docs)</PackageReleaseNotes>
|
||||
<RepositoryType>Github</RepositoryType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
@ -1,4 +1,4 @@
|
||||
namespace MiniExcel
|
||||
namespace MiniExcelLibs
|
||||
{
|
||||
public class XlsxCell
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace MiniExcel
|
||||
namespace MiniExcelLibs
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
public class XlsxRow
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace MiniExcel
|
||||
namespace MiniExcelLibs
|
||||
{
|
||||
using System;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace MiniExcel
|
||||
namespace MiniExcelLibs
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace MiniExcel
|
||||
namespace MiniExcelLibs
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
public class XlsxWorksheet
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace MiniExcel
|
||||
namespace MiniExcelLibs
|
||||
{
|
||||
internal class ZipPackageInfo
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
using Xunit;
|
||||
using MiniExcel;
|
||||
using MiniExcelLibs;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@ -11,7 +11,7 @@ using ClosedXML.Excel;
|
||||
using System.IO.Packaging;
|
||||
using System.Data;
|
||||
|
||||
namespace MiniExcel.Tests
|
||||
namespace MiniExcelLibs.Tests
|
||||
{
|
||||
public class MiniExcelHelperTests
|
||||
{
|
||||
@ -20,7 +20,7 @@ namespace MiniExcel.Tests
|
||||
public void ReadMultipleSheetsTest()
|
||||
{
|
||||
var path = @"..\..\..\..\..\samples\xlsx\TestMultiSheet.xlsx";
|
||||
var w = MiniExcelHelper.Read(path);
|
||||
var w = MiniExcel.Read(path);
|
||||
var wss = w.Worksheets;
|
||||
Assert.True(wss.Count() == 3);
|
||||
|
||||
@ -37,7 +37,7 @@ namespace MiniExcel.Tests
|
||||
public void ReadForeachSheetsRowsCellsTest()
|
||||
{
|
||||
var path = @"..\..\..\..\..\samples\xlsx\TestMultiSheet.xlsx";
|
||||
var w = MiniExcelHelper.Read(path);
|
||||
var w = MiniExcel.Read(path);
|
||||
var wss = w.Worksheets;
|
||||
foreach (var ws in wss)
|
||||
{
|
||||
@ -67,7 +67,7 @@ namespace MiniExcel.Tests
|
||||
table.Rows.Add(@"<test>Hello World</test>", -1234567890,false, now.Date);
|
||||
}
|
||||
|
||||
MiniExcelHelper.Create(path, table);
|
||||
MiniExcel.Create(path, table);
|
||||
|
||||
using (var p = new ExcelPackage(new FileInfo(path)))
|
||||
{
|
||||
@ -91,7 +91,7 @@ namespace MiniExcel.Tests
|
||||
public void CreateTest()
|
||||
{
|
||||
var path = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid()}.xlsx");
|
||||
MiniExcelHelper.Create(path, new[] {
|
||||
MiniExcel.Create(path, new[] {
|
||||
new { a = @"""<>+-*//}{\\n", b = 1234567890,c = true,d=DateTime.Now },
|
||||
new { a = "<test>Hello World</test>", b = -1234567890,c=false,d=DateTime.Now.Date}
|
||||
});
|
||||
@ -107,7 +107,7 @@ namespace MiniExcel.Tests
|
||||
{
|
||||
var now = DateTime.Now;
|
||||
var path = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid()}.xlsx");
|
||||
MiniExcelHelper.Create(path, new[] {
|
||||
MiniExcel.Create(path, new[] {
|
||||
new { a = @"""<>+-*//}{\\n", b = 1234567890,c = true,d= now},
|
||||
new { a = "<test>Hello World</test>", b = -1234567890,c=false,d=now.Date}
|
||||
});
|
||||
@ -133,7 +133,7 @@ namespace MiniExcel.Tests
|
||||
{
|
||||
var now = DateTime.Now;
|
||||
var path = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid()}.xlsx");
|
||||
MiniExcelHelper.Create(path, new[] {
|
||||
MiniExcel.Create(path, new[] {
|
||||
new { a = @"""<>+-*//}{\\n", b = 1234567890,c = true,d= now},
|
||||
new { a = "<test>Hello World</test>", b = -1234567890,c=false,d=now.Date}
|
||||
});
|
||||
@ -159,7 +159,7 @@ namespace MiniExcel.Tests
|
||||
{
|
||||
var now = DateTime.Now;
|
||||
var path = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid()}.xlsx");
|
||||
MiniExcelHelper.Create(path, new[] {
|
||||
MiniExcel.Create(path, new[] {
|
||||
new { a = @"""<>+-*//}{\\n", b = 1234567890,c = true,d= now},
|
||||
new { a = "<test>Hello World</test>", b = -1234567890,c=false,d=now.Date}
|
||||
});
|
||||
|
@ -17,7 +17,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MiniExcel\MiniExcel.csproj" />
|
||||
<ProjectReference Include="..\MiniExcel\MiniExcelLibs.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user