be-create-mappings

Automate AutoMapper profile creation between entities and DTOs in .NET Core.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/bmslabs/bmlabs-projects-templates --skill be-create-mappings
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: be-create-mappings
Source: https://github.com/bmslabs/bmlabs-projects-templates/tree/main/api-dotnet/.github/skills/be-create-mappings
Command: npx skills add https://github.com/bmslabs/bmlabs-projects-templates --skill be-create-mappings

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Este Skill facilita la creación de mapping profiles en .NET Core utilizando AutoMapper, estandarizando la conversión entre entidades y DTOs y reduciendo errores manuales. Incluye manejo de navegación, fechas y colecciones para perfiles robustos.

Core Features & Use Cases

  • Generación automática de perfiles de mapeo entre entidades y DTOs siguiendo convenciones de nomenclatura y configuración.
  • Soporte para mapeo bidireccional, mapeo de navegación, fechas y colecciones, con validaciones de null para DTO→Entidad.
  • Facilita la documentación y el mantenimiento al generar estructuras de perfiles consistentes.

Quick Start

Crea un EntidadProfile para mapear Entidad con EntidadDto y registra ese perfil en la configuración de AutoMapper en tu proyecto.

Frequently Asked Questions about be-create-mappings

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate AutoMapper profile generation between entities and DTOs in .NET Core?

You can automate AutoMapper profile generation by applying CreateMap configurations between entities and DTOs in .NET Core. This handles bidirectional mappings, navigation properties, and collections automatically, reducing manual coding errors and standardizing conversion logic.

What is the best way to handle navigation properties and collections in AutoMapper?

Handling navigation properties and collections in AutoMapper requires explicit CreateMap configurations for complex types. This ensures proper bidirectional mapping across multiple layers while applying ForAllMembers null checks to prevent reference errors during DTO to Entity conversion.

How does AutoMapper handle DateTime and DateTimeOffset conversions safely?

AutoMapper handles DateTime and DateTimeOffset conversions safely by implementing proper DateTime(DateTimeOffset) handling within mapping profiles. This ensures accurate timezone and date formatting when mapping between entities and DTOs in .NET Core.

Can I use AutoMapper for bidirectional mapping with null checks from DTO to Entity?

Yes, you can use AutoMapper for bidirectional mapping by applying ForAllMembers null checks during DTO to Entity conversion. This prevents null reference exceptions and ensures data integrity when updating entities from incoming DTOs.

Do I need to manually write XML documentation for AutoMapper profiles?

You do not need to manually write XML documentation for AutoMapper profiles. The automation generates XML documentation automatically to ensure maintainability and consistency across all mapping configurations between entities and DTOs.