Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

Migration Guides (v1 -> v2) — Mapper

Upgrade checklist from published NuGet v1.0.0 → v2.0.0 (BC-001–BC-008).

  1. Mapper.Mapster AOT revocation (BC-001): EricksonLopez.Mapper.Mapster is marked IsAotCompatible=false with [RequiresUnreferencedCode] / [RequiresDynamicCode]. Migrate reflection profiles to [Mapper] partial classes for Native AOT.
  2. DateOnly → DateTimeOffset UTC enforcement (BC-002): Conversions now force DateTimeKind.Utc.
  3. New compile-time diagnostics (BC-003–BC-007): Resolve unresolved [MapFactory] (ELM017), non-partial [Mapper] interfaces (ELM012), cycles across [MapDerivedType] (ELM010), and duplicate [MapProperty] (ELM018). Generated HintNames follow {Namespace}_{ClassName}.g.cs.
  4. Nullable collection targets (BC-008): Nullable destination collections initialize to null when the source collection is null instead of an empty list.

Local workspace 3.0.0 (unpublished on NuGet) introduces checked(...) narrowing casts, ELM025 decimal-to-float warnings, DateTimeKind.Unspecified → UTC coercion, Enum.IsDefined validation, {Name}Impl generation for interface mappers, and ELM012 checks on record / record struct.