Git Product home page Git Product logo

Comments (2)

mark-gerarts avatar mark-gerarts commented on June 18, 2024 1

That's definitely a step in the right direction. Using a NoNamingConventions is an option, although it might be more fitting to put this logic in a NameResolver, either adding logic to the default one or creating a completely new one. The advantage here being that the NameResolver can already be overwritten in the Options.

That being said, I'm open for other ideas. I think the hardest part will be the actual guessing of source properties. If you wanna take a shot at this, then go ahead. I'll be more than happy to merge a good solution for this.

Thanks for your interest!

from automapper-plus.

samrap avatar samrap commented on June 18, 2024

I am currently reading through the source to wrap my head around the architecture of this package. I'd really like to be a major contributor to this down the line.

There are clearly some arguments for and against this feature so I definitely think it should be something that must be explicitly set in the Options. Maybe something like:

$config
    ->registerMapping(CrazySource::class, SomeOtherCrazyDestination::class)
    ->withoutNamingConventions();

The method withoutNamingConventions() could simply set the naming conventions to a NoNamingConventions implementation. The NoNamingConventions would then be responsible for converting the property name, perhaps stripping it of underscores and converting it to lowercase?

from automapper-plus.

Related Issues (20)

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.