-
Notifications
You must be signed in to change notification settings - Fork 1.9k
TextLoader throws when type is missing LoadColumnAttribute #3071
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
Conversation
…ssing LoadColumnAttribute
Codecov Report
@@ Coverage Diff @@
## master #3071 +/- ##
==========================================
- Coverage 72.53% 72.53% -0.01%
==========================================
Files 806 806
Lines 144282 144304 +22
Branches 16183 16188 +5
==========================================
+ Hits 104661 104674 +13
- Misses 35217 35223 +6
- Partials 4404 4407 +3
|
|
|
||
| host.Assert(mappingAttr != null, $"Field or property {memberInfo.Name} is missing the {nameof(LoadColumnAttribute)} attribute"); | ||
| if (mappingAttr == null) | ||
| throw host.Except($"{(memberInfo is FieldInfo ? "Field" : "Property")} '{memberInfo.Name}' is missing the {nameof(LoadColumnAttribute)} attribute"); |
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.
memberInfo.Name [](start = 93, length = 15)
Just a note, while we often use ' to indicate quoting of things that can contain potentially confusing items like spaces, since C# identifiers cannot contain spaces I view their presence as less essential than I would in, say, a column name or some other such entity. (Not a big deal at all, just registering a random thought since I am half allergic to letting PRs pass with no comments whatsoever. :D )
TomFinley
left a comment
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.
Thank you @yaeldekel !!
Fixes #3051.
Edit: This also fixes #2037.