Skip to content
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

Ajustes no meio de mapeamento de construtores #10

Open
eglauko opened this issue Apr 28, 2024 · 0 comments
Open

Ajustes no meio de mapeamento de construtores #10

eglauko opened this issue Apr 28, 2024 · 0 comments

Comments

@eglauko
Copy link
Member

eglauko commented Apr 28, 2024

Modificar este meio de mapear inner properties para um construtor:

builder.Map(s => s.Value).ToConstructor();

O problema se encontra em que o Map() retorna um mapeamento de propriedades, e isto impossibilita o reaproveitamento para mapeamentos Mapper, além do Adapter.

Poderia ser criado algums mapeamentos a nível de Construtor(), semelhante ao seguinte:

// map a property to a constructor parameter
builder.Constructor().MapParameter(s => s.Name);

// map inner properties to the constructor
builder.Constructor().Map(s => s.Value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant