-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor toward separation of projects by use cases
- Loading branch information
Showing
41 changed files
with
315 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
using ExcelMapper.Models; | ||
using System; | ||
using System; | ||
using System.Collections.Generic; | ||
using YummyCode.ExcelMapper.Shared.Models; | ||
|
||
namespace ExcelMapper.Exceptions | ||
namespace YummyCode.ExcelMapper.Exceptions | ||
{ | ||
public class ExcelMappingException : Exception | ||
public class ExcelMappingException(Dictionary<string, ResultState> cols) : Exception | ||
{ | ||
public Dictionary<string, ResultState> Cols { get; set; } | ||
public ExcelMappingException(Dictionary<string, ResultState> cols) | ||
{ | ||
Cols = cols; | ||
} | ||
public Dictionary<string, ResultState> Cols { get; set; } = cols; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
using System; | ||
|
||
namespace ExcelMapper.Models | ||
namespace YummyCode.ExcelMapper.Models | ||
{ | ||
public sealed class ExcelColAttribute : Attribute | ||
public sealed class ExcelColAttribute(string col) : Attribute | ||
{ | ||
public string Col { get; set; } | ||
public ExcelColAttribute(string col) | ||
{ | ||
Col = col; | ||
} | ||
public string Col { get; set; } = col; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,16 @@ | ||
using NPOI.SS.UserModel; | ||
using System.Collections.Generic; | ||
using System.Collections.Generic; | ||
using System.Linq.Expressions; | ||
using System.Reflection; | ||
|
||
namespace ExcelMapper.Models | ||
namespace YummyCode.ExcelMapper.Models | ||
{ | ||
public sealed class PropertyMapInfo | ||
public sealed class PropertyMapInfo(string name, PropertyInfo property, string columnName) | ||
{ | ||
public PropertyMapInfo(string name, PropertyInfo property, string columnName) | ||
{ | ||
Name = name; | ||
Property = property; | ||
ColumnName = columnName; | ||
} | ||
|
||
public string Name { get; set; } | ||
public PropertyInfo Property { get; set; } | ||
public string ColumnName { get; set; } | ||
public string Name { get; set; } = name; | ||
public PropertyInfo Property { get; set; } = property; | ||
public string ColumnName { get; set; } = columnName; | ||
public List<LambdaExpression> Actions { get; set; } = new(); | ||
public List<LambdaExpression> Validations { get; set; } = new(); | ||
public List<string> IgnoredValues { get; set; } = new List<string>(); | ||
} | ||
|
||
public sealed class CellMappingInfo | ||
{ | ||
public int Column { get; set; } | ||
public string? Title { get; set; } | ||
public PropertyInfo? Property { get; set; } | ||
public List<LambdaExpression> Actions { get; set; } = new(); | ||
public ICellStyle? Style { get; set; } | ||
public string? ConstValue { get; set; } | ||
public string? DefaultValue { get; set; } | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.