mirror of
https://github.com/Readarr/Readarr
synced 2025-12-30 20:25:18 +01:00
Fixed: Bad Author -> Book lazy lookup
This commit is contained in:
parent
493ce1b20c
commit
0a20188508
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ public static void Map()
|
|||
.HasOne(a => a.Metadata, a => a.AuthorMetadataId)
|
||||
.HasOne(a => a.QualityProfile, a => a.QualityProfileId)
|
||||
.HasOne(s => s.MetadataProfile, s => s.MetadataProfileId)
|
||||
.LazyLoad(a => a.Books, (db, a) => db.Query<Book>(new SqlBuilder().Where<Book>(rg => rg.AuthorMetadataId == a.Id)).ToList(), a => a.Id > 0);
|
||||
.LazyLoad(a => a.Books, (db, a) => db.Query<Book>(new SqlBuilder().Where<Book>(b => b.AuthorMetadataId == a.AuthorMetadataId)).ToList(), a => a.AuthorMetadataId > 0);
|
||||
|
||||
Mapper.Entity<Series>("Series").RegisterModel()
|
||||
.Ignore(s => s.ForeignAuthorId)
|
||||
|
|
|
|||
Loading…
Reference in a new issue