mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-27 23:06:29 -04:00
New: Postgres Database Support
Co-Authored-By: Qstick <376117+Qstick@users.noreply.github.com>
This commit is contained in:
@@ -115,7 +115,7 @@ namespace NzbDrone.Core.Datastore
|
||||
Mapper.Entity<EpisodeFile>("EpisodeFiles").RegisterModel()
|
||||
.HasOne(f => f.Series, f => f.SeriesId)
|
||||
.LazyLoad(x => x.Episodes,
|
||||
(db, parent) => db.Query<Episode>(new SqlBuilder().Where<Episode>(c => c.EpisodeFileId == parent.Id)).ToList(),
|
||||
(db, parent) => db.Query<Episode>(new SqlBuilder(db.DatabaseType).Where<Episode>(c => c.EpisodeFileId == parent.Id)).ToList(),
|
||||
t => t.Id > 0)
|
||||
.Ignore(f => f.Path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user