1
0
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:
Robin Dadswell
2022-01-26 00:08:27 +00:00
committed by Qstick
parent 69ddd99eb8
commit a13011aa49
195 changed files with 2600 additions and 1325 deletions
+1 -1
View File
@@ -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);