Uselful for fullstack developer using Front TypeScript and .NET.
This goal is typed Include Method for EF Core via DTO.
export interface EntityA {
PropertyPrimitve1: number;
PropertyPrimitve2: Date;
PropertyPrimitve3?: TimeSpan;
EntityB?: EntityB;
}
export interface EntityB {
PropertyPrimitve1: number;
PropertyPrimitve2: Date;
PropertyPrimitve3?: TimeSpan;
EntityC: EntityC;
}
export interface EntityC {
PropertyPrimitve1: number;
PropertyPrimitve2: Date;
PropertyPrimitve3?: TimeSpan;
}
type IncludeResult = IncludeProperties<EntityA>;
// "EntityB" | "EntityB.EntityC"