Stack Explorer

AutoMapper

Utility

Object-to-object mapping library for .NET

1.5M/week → Stable

Features

mappingdtoconventionproductivity

Pros and Cons

Ventajas

  • + Automatic convention-based mapping
  • + Reduces DTO boilerplate
  • + Profiles for organization
  • + Query projections
  • + Configuration validation

Desventajas

  • - Can hide complexity
  • - Sometimes difficult debugging
  • - Performance overhead
  • - Magic can confuse

Use Cases

  • Entity to DTO mapping
  • REST APIs with transformation
  • Clean Architecture layers
  • CQRS responses
  • View models

Tecnologías Relacionadas