Skip to content

Commit

Permalink
Revert "完成 API 帳號系統與初步 Restful API 嘗試"
Browse files Browse the repository at this point in the history
This reverts commit 8eb67b4.
  • Loading branch information
maxzh1999tw committed Feb 12, 2024
1 parent 8eb67b4 commit 2299f49
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 59 deletions.
26 changes: 0 additions & 26 deletions Excely.EPPlus.LGPL/Plugins/ErrorRecordPluginExtention.cs

This file was deleted.

6 changes: 0 additions & 6 deletions Excely.sln
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Excely.ClosedXML.UnitTests"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "UnitTests", "UnitTests", "{05E1BF0C-B2F1-41C1-B5AB-52C001A3D557}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Debug", "Debug\Debug.csproj", "{7BCFF4FE-F23D-4BDC-8D32-E22148C29F08}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -43,10 +41,6 @@ Global
{075DACAA-3E1D-46E6-B094-0E119B56673B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{075DACAA-3E1D-46E6-B094-0E119B56673B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{075DACAA-3E1D-46E6-B094-0E119B56673B}.Release|Any CPU.Build.0 = Release|Any CPU
{7BCFF4FE-F23D-4BDC-8D32-E22148C29F08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7BCFF4FE-F23D-4BDC-8D32-E22148C29F08}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7BCFF4FE-F23D-4BDC-8D32-E22148C29F08}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7BCFF4FE-F23D-4BDC-8D32-E22148C29F08}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
19 changes: 0 additions & 19 deletions Excely/Plugins/ErrorRecordPlugin.cs

This file was deleted.

8 changes: 4 additions & 4 deletions Excely/TableConverters/ClassListTableConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ private IEnumerable<TClass> ImportInternal(ExcelyTable table, Func<PropertyInfo,
continue;
}

// 取得欄位解析結果
var value = Options.PropertyValueSettingPolicy(property, table.Data[rowIndex][columnIndex]);

try
{
// 取得欄位解析結果
var value = Options.PropertyValueSettingPolicy(property, table.Data[rowIndex][columnIndex]);

// 嘗試自動轉型
if (value != null && Options.EnableAutoTypeConversion)
{
Expand Down Expand Up @@ -131,7 +131,7 @@ private IEnumerable<TClass> ImportInternal(ExcelyTable table, Func<PropertyInfo,
catch (Exception ex)
{
// 執行錯誤處理
var errorFixed = Options.ErrorHandlingPolicy(new CellLocation(rowIndex, columnIndex), obj, property, table.Data[rowIndex][columnIndex], ex);
var errorFixed = Options.ErrorHandlingPolicy(new CellLocation(rowIndex, columnIndex), obj, property, value, ex);

// 錯誤處理失敗,且要求停止
if (!errorFixed && Options.ThrowWhenError)
Expand Down
4 changes: 0 additions & 4 deletions Excely/Workflows/ExcelyImporterBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ public abstract class ExcelyImporterBase<TInput>
{
protected abstract ExcelyTable GetTable(TInput input);

public List<Action<ExcelyTable>> DoAfterGetTableCallbackList { get; set; } = new List<Action<ExcelyTable>>();

/// <summary>
/// 將資料匯入為物件列表。
/// </summary>
Expand All @@ -25,7 +23,6 @@ public IEnumerable<TClass> ToClassList<TClass>(
where TClass : class, new()
{
var table = GetTable(dataSource);
DoAfterGetTableCallbackList.ForEach(x => x.Invoke(table));
var converter = options == null ? new ClassListTableConverter<TClass>() : new ClassListTableConverter<TClass>(options);
return converter.ConvertFrom(table);
}
Expand All @@ -41,7 +38,6 @@ public IEnumerable<TClass> ToClassList<TClass>(
DictionaryListTableConverterOptions? options = null)
{
var table = GetTable(dataSource);
DoAfterGetTableCallbackList.ForEach(x => x.Invoke(table));
var converter = options == null ? new DictionaryListTableConverter() : new DictionaryListTableConverter(options);
return converter.ConvertFrom(table);
}
Expand Down

0 comments on commit 2299f49

Please sign in to comment.