Part of DKNet.EfCore.DtoGenerator. The Quick Start declares a public partial record. Replace its ProductDto shell to keep one property under your control:
[GenerateDto(typeof(Product))]
public partial record ProductDto
{
public string Name { get; init; } = "fallback";
}
Candidate properties must be public instance properties with public getters and no index parameters. Base-type properties are included and de-duplicated by name. A partial class or partial record struct also receives a matching partial declaration.
The compiler component diagram shows the analyzer boundary. GenerateDtoAttribute is internal source compiled into your project; GlobalDtoConfiguration is a documentation marker inside the analyzer, not a runtime configuration API.
.g.cs. Avoid two DTO shells with the same simple name, even in different namespaces.FromEntity, ToEntity or mapping helpers are generated. A DTO initializer must satisfy generated required string members.