Coder Social home page Coder Social logo

Comments (6)

lvmajor avatar lvmajor commented on July 22, 2024 1

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.

lvmajor avatar lvmajor commented on July 22, 2024 1

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.

lvmajor avatar lvmajor commented on July 22, 2024 1

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.

damienbod avatar damienbod commented on July 22, 2024

@os1r1s110 that would be great, thanks

from aspnetcorecsvimportexport.

damienbod avatar damienbod commented on July 22, 2024

@os1r1s110 Thanks!

I will go through this and merge it today/tomorrow.

from aspnetcorecsvimportexport.

damienbod avatar damienbod commented on July 22, 2024

merged, thanks

from aspnetcorecsvimportexport.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.