What problem does it solve?
This Skill addresses the complexity of mapping F# data types like value objects, options, and discriminated unions across different layers of an application, specifically between JSON serialization (for APIs) and Entity Framework Core persistence (for databases).
Core Features & Use Cases
- End-to-End Mapping: Provides guidance and patterns for mapping F# types from API JSON requests/responses through DTOs and domain types to EF Core Value Converters and SQLite storage.
- Layered Responsibilities: Clearly defines where mapping logic should reside within the Onion Architecture (Domain, Application, API, Infrastructure).
- Use Case: When adding a new F# discriminated union type to represent different user input types, this Skill helps you implement the necessary JSON converters for the API and
ValueConverter for the database, ensuring consistent data handling.
Quick Start
Use the entity-framework-fsharp skill to map F# value objects and discriminated unions across JSON and Entity Framework Core boundaries.