EFFluentify Tool Converts EF Core Data Annotations to Fluent API Automatically
A developer has released EFFluentify, a .NET command-line tool that converts Entity Framework Core Data Annotations into Fluent API configuration classes in a single pass. The tool addresses a common codebase problem where mapping configuration is inconsistently split between Data Annotations on domain classes and Fluent API calls in OnModelCreating. Built on Roslyn, EFFluentify parses actual C# code to correctly resolve types, nullability, and cross-entity relationships rather than relying on text-based pattern matching. It generates dedicated IEntityTypeConfiguration classes and can optionally strip the now-redundant annotations from source files, leaving clean POCOs with backup copies. The tool requires the .NET 9 SDK and is available as a global NuGet package under the name EFFluentify.Tool.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in