-
-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean code use lambda instead of foreach. #144
Conversation
@isdaniel 感謝石頭大! 另外會想另外建立一個 ExcelColumnIndexAttribute
內含在 ExcelColumnName with ColumnIndex 版本
|
是,跟 Query 時指定 proeprty 讀取的欄位順序 public class Demo
{
public int MyProperty { get; set; } //index = 1
public int MyProperty2 { get; set; } //index = 3
public int MyProperty3 { get; set; } //index = 4
[ExcelColumnIndex(columnIndex:"A")] // equal column index 0
public int MyProperty4 { get; set; }
[ExcelColumnName(columnIndex:2)]
public int MyProperty5 { get; set; } //index = 2
public int MyProperty3 { get; set; } //index = 5
} 但還在考慮這個功能實不實用,自己沒用過這功能,但其他框架有提供才列在Issue |
ExcelColumnIndexAttribute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先暫時刪除 ExcelColumnIndex 先,後面會實作
我了解了 |
Hi 緯翰大
這次PR我有以下調整
foreach
.另外我有看到 你有開一個ticket
#142
請問一下你想要做的事情是使用ColumnIndex指定哪一列 要放哪個Property Value嗎?