# EF Core Include 1. `using Microsoft.EntityFrameworkCore;` > 需先Using EFcore 2. 找主表的關係 > `.Include(x => x.子表)` 3. 多子表為 > `.Include(x => x.子表1)` > `.Include(x => x.子表2)` > `.Include(x => x.子表3)` 4. 找子表的關聯 > `.Include(x => x.子表).ThenInclude(子表 => 子表.孫子表)` 5. 多孫子表 > `.Include(x => x.子表).ThenInclude(子表 => 子表.孫子表1)` > `.Include(x => x.子表).ThenInclude(子表 => 子表.孫子表2)` > `.Include(x => x.子表).ThenInclude(子表 => 子表.孫子表3)`