Entity parsing is the foundation of code generation. This document explains how the tool parses entity classes to extract information needed for code generation.
There are two main methods for parsing entities:
Roslyn Static Analysis: Parse entity class source code directly using Roslyn to extract property information, attributes, and relationships.
EntityFramework Core Design: Use EF Core's design-time services to model the database context and extract comprehensive entity information including:
XML documentation comments are extracted using XmlDocHelper to provide descriptions for:
This information is used in generated code comments and API documentation.
For each entity property, the parser extracts:
The parsed entity information is used by generators to: