Comments (6)
What could be even nicer (not sure it's a good idea though) is if it could use the same properties as Json.NET?
Maybe that makes too much assumptions about the user using both Json.Net and this library... but that would make it less verbose on the properties data annotations to specify both the json and the csv ignore/property name
from aspnetcorecsvimportexport.
I made it work tonight (for the output formatter only for the test I did), will try to provide a PR in the following days that would include both output and input formatters, supporting JsonPropertyAttribute and JsonIgnoreAttribute if you think that could be useful.
Otherwise, I'll simply use my edited version of your code in my app :)
from aspnetcorecsvimportexport.
Ok so I did implement it in a pretty basic way but it's working. I'll do the PR tomorrow.
After talking with @poke on Slack though, he made me realize that the best option might simply be to use basic DTOs?
I couldn't think of a case where the DTO wouldn't be sufficient to meet the requirements here but maybe there is.
The option will be there whatsoever if someone needs it.
from aspnetcorecsvimportexport.
@os1r1s110 that would be great, thanks
from aspnetcorecsvimportexport.
@os1r1s110 Thanks!
I will go through this and merge it today/tomorrow.
from aspnetcorecsvimportexport.
merged, thanks
from aspnetcorecsvimportexport.
Related Issues (15)
- Does this handle nested complex data? HOT 1
- NuGet package HOT 1
- Returning the data as a file? HOT 3
- Package divergence between damienbod/AspNetCoreCsvImportExport and damienbod/WebAPIContrib.Core HOT 1
- export data.csv for GET method with query parameters? HOT 3
- Generric import & export - for runtime file import
- Typo in project title HOT 1
- NuGet with .NET 3.0 updates?
- Demo code threw this exception HOT 2
- DateTime HOT 1
- System.InvalidCastException: Unable to cast object of type 'report_engine.Models.CustomerPlanModel' to type 'System.Collections.IList' HOT 7
- Default file name for exported csv file HOT 2
- Bug, improvement
- How to Upload File HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspnetcorecsvimportexport.