-
Notifications
You must be signed in to change notification settings - Fork 122
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
Excel like Columns names #92
Comments
Re column names: Do you have an idea what the API should look like considering we already have the I don't understand the second point. Can you open a separate issue and add a snippet of demo code? |
I guess you are talking about typed mapping, where you can add attributes. I was talking about Dynamic mapping via Fetch that returns ExpandoObject. In case of that, returned EO has both index and name key added so it duplicates stuff. |
Also, it would be great to add Excel like columns rather index based as that feels natural in ExpandoObject. |
So how about removing integer indexes as keys for the ExpandoObject altogether and use letters as names if there's no header row? In other words, if you have a header row you can say |
yes, but from where Thanks |
Yes, exactly. |
Hi, i have updated like this:
There is rough implementation to generate Excel like name
I like that you take a look to better integrate it. Thanks |
There's a builtin method for letter to index conversion in NPOI: The problem with removing the integer index properties is that they were used for mapping to the correct columns when saving. I have moved the index mapping to its own property called If you specify If you save dynamic objects that have no index map property and all properties have one- or two-letter column names they'll be automatically mapped to the corresponding column index. |
Hi,
Currently column names are index based but it should default to Excel like column name eg:
A-Z
,AA-AZ
... as these are more intuitive and symmetrical to Excel.Also, it would be great to skip adding index based columns when Header is already present as it duplicates the whole data.
Thanks
The text was updated successfully, but these errors were encountered: