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

feat: Implement support for mapping PropertyInfo directly #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

geloczi
Copy link

@geloczi geloczi commented Dec 5, 2023

This change implements support to map directly PropertyInfo. There are use cases when using attributes is not possible. For example when a project is forced to use Entity Framework Core - Database First with scaffolding, this would be a big time saver.

Example: Map all properties of a class with a single line:

typeof(Post).GetProperties().ToList().ForEach(p => mapper.Property<Post>(p).CanSort().CanFilter());

Makes it easy to map properties when using attributes is not possible
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

Successfully merging this pull request may close these issues.

None yet

1 participant