(EFCore使用Include和join)(Include和ThenInclude区别)
(EFCore使⽤Include和join)(Include和ThenInclude区别)EF Core使⽤Include和join在EF中表连接常⽤的有Join()和Include(),两者都可以实现两张表的连接,但⼜有所不同。例如有个唱⽚表Album(AlbumId,Name,CreateDate,GenreId),表中含外键GenreId连接流派表Genre(GenreId,Name)。每个
时间:2023-07-04 热度:5℃