Skip to content

nemu69/type-IncludeProperties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

type-IncludeProperties

Uselful for fullstack developer using Front TypeScript and .NET.

This goal is typed Include Method for EF Core via DTO.

Docs links:

ObjectQuery.Include(String) Method

Usage Notes

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"

About

Uselful for fullstack developer using Front TypeScript and .NET. This goal is typed Include Method for EF Core via DTO.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors