@ -13,16 +12,13 @@ public class DeleteLocalLibraryHandler : LocalLibraryHandlerBase,
@@ -13,16 +12,13 @@ public class DeleteLocalLibraryHandler : LocalLibraryHandlerBase,
@ -30,14 +26,14 @@ public class DeleteLocalLibraryHandler : LocalLibraryHandlerBase,
@@ -30,14 +26,14 @@ public class DeleteLocalLibraryHandler : LocalLibraryHandlerBase,
@ -16,20 +15,17 @@ public class MoveLocalLibraryPathHandler : IRequestHandler<MoveLocalLibraryPath,
@@ -16,20 +15,17 @@ public class MoveLocalLibraryPathHandler : IRequestHandler<MoveLocalLibraryPath,
@ -37,9 +33,9 @@ public class MoveLocalLibraryPathHandler : IRequestHandler<MoveLocalLibraryPath,
@@ -37,9 +33,9 @@ public class MoveLocalLibraryPathHandler : IRequestHandler<MoveLocalLibraryPath,
@ -50,7 +46,7 @@ public class MoveLocalLibraryPathHandler : IRequestHandler<MoveLocalLibraryPath,
@@ -50,7 +46,7 @@ public class MoveLocalLibraryPathHandler : IRequestHandler<MoveLocalLibraryPath,
@"SELECT MediaItem.Id FROM MediaItem WHERE LibraryPathId = @LibraryPathId",
new{LibraryPathId=path.Id})
.Map(result=>result.ToList());
@ -60,7 +56,7 @@ public class MoveLocalLibraryPathHandler : IRequestHandler<MoveLocalLibraryPath,
@@ -60,7 +56,7 @@ public class MoveLocalLibraryPathHandler : IRequestHandler<MoveLocalLibraryPath,
@ -91,21 +87,24 @@ public class MoveLocalLibraryPathHandler : IRequestHandler<MoveLocalLibraryPath,
@@ -91,21 +87,24 @@ public class MoveLocalLibraryPathHandler : IRequestHandler<MoveLocalLibraryPath,
@ -28,9 +27,12 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@@ -28,9 +27,12 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@"SELECT EmbySeason.ItemId, EmbySeason.Etag FROM EmbySeason
INNERJOINSeasonSonEmbySeason.Id=S.Id
INNERJOINMediaItemMIonS.Id=MI.Id
@ -40,9 +42,12 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@@ -40,9 +42,12 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@"SELECT EmbyEpisode.ItemId, EmbyEpisode.Etag FROM EmbyEpisode
INNERJOINEpisodeEonEmbyEpisode.Id=E.Id
INNERJOINMediaItemMIonE.Id=MI.Id
@ -52,10 +57,11 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@@ -52,10 +57,11 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@ -69,7 +75,7 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@@ -69,7 +75,7 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@ -245,11 +251,12 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@@ -245,11 +251,12 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@ -268,7 +275,7 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@@ -268,7 +275,7 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@ -384,11 +391,12 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@@ -384,11 +391,12 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@ -408,7 +416,7 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@@ -408,7 +416,7 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@ -551,39 +559,46 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@@ -551,39 +559,46 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@ -592,7 +607,7 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@@ -592,7 +607,7 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@ -604,7 +619,7 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@@ -604,7 +619,7 @@ public class EmbyTelevisionRepository : IEmbyTelevisionRepository
@ -28,9 +27,12 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@@ -28,9 +27,12 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@"SELECT JellyfinSeason.ItemId, JellyfinSeason.Etag FROM JellyfinSeason
INNERJOINSeasonSonJellyfinSeason.Id=S.Id
INNERJOINMediaItemMIonS.Id=MI.Id
@ -40,9 +42,12 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@@ -40,9 +42,12 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@"SELECT JellyfinEpisode.ItemId, JellyfinEpisode.Etag FROM JellyfinEpisode
INNERJOINEpisodeEonJellyfinEpisode.Id=E.Id
INNERJOINMediaItemMIonE.Id=MI.Id
@ -52,10 +57,11 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@@ -52,10 +57,11 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@ -69,7 +75,7 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@@ -69,7 +75,7 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@ -262,11 +268,12 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@@ -262,11 +268,12 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@ -285,7 +292,7 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@@ -285,7 +292,7 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@ -385,11 +392,12 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@@ -385,11 +392,12 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@ -409,7 +417,7 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@@ -409,7 +417,7 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@ -552,39 +560,44 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@@ -552,39 +560,44 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@ -593,7 +606,7 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@@ -593,7 +606,7 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@ -605,7 +618,7 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@@ -605,7 +618,7 @@ public class JellyfinTelevisionRepository : IJellyfinTelevisionRepository
@ -85,7 +81,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -85,7 +81,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -101,7 +97,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -101,7 +97,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -130,7 +126,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -130,7 +126,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -283,7 +279,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -283,7 +279,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -325,7 +321,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -325,7 +321,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -360,34 +356,46 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -360,34 +356,46 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -422,7 +430,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -422,7 +430,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -430,7 +438,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -430,7 +438,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -443,7 +451,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -443,7 +451,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -466,10 +474,10 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -466,10 +474,10 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -480,7 +488,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -480,7 +488,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -488,7 +496,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -488,7 +496,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -500,10 +508,10 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -500,10 +508,10 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -524,7 +532,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -524,7 +532,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -545,7 +553,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -545,7 +553,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -555,7 +563,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -555,7 +563,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -571,7 +579,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -571,7 +579,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -583,7 +591,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -583,7 +591,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -592,7 +600,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -592,7 +600,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -605,10 +613,10 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -605,10 +613,10 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -619,7 +627,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -619,7 +627,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -627,7 +635,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@@ -627,7 +635,7 @@ public class MediaCollectionRepository : IMediaCollectionRepository
@ -76,14 +71,15 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -76,14 +71,15 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -91,10 +87,10 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -91,10 +87,10 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -111,7 +107,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -111,7 +107,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -139,7 +135,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -139,7 +135,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -168,7 +164,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -168,7 +164,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -197,7 +193,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -197,7 +193,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -227,9 +223,11 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -227,9 +223,11 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -238,7 +236,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -238,7 +236,7 @@ public class MediaSourceRepository : IMediaSourceRepository
foreach(PlexPathReplacementupdateintoUpdate)
{
await_dbConnection.ExecuteAsync(
awaitdbContext.Connection.ExecuteAsync(
@"UPDATE PlexPathReplacement
SETPlexPath=@PlexPath,LocalPath=@LocalPath
WHEREId=@Id",
@ -247,7 +245,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -247,7 +245,7 @@ public class MediaSourceRepository : IMediaSourceRepository
foreach(PlexPathReplacementdeleteintoDelete)
{
await_dbConnection.ExecuteAsync(
awaitdbContext.Connection.ExecuteAsync(
@"DELETE FROM PlexPathReplacement WHERE Id = @Id",
new{delete.Id});
}
@ -257,26 +255,28 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -257,26 +255,28 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -284,7 +284,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -284,7 +284,7 @@ public class MediaSourceRepository : IMediaSourceRepository
new{PlexMediaSourceId=plexMediaSource.Id})
.Map(result=>result.ToList());
await_dbConnection.ExecuteAsync(
awaitdbContext.Connection.ExecuteAsync(
@"DELETE FROM MediaSource WHERE Id = @PlexMediaSourceId",
new{PlexMediaSourceId=plexMediaSource.Id});
@ -293,15 +293,17 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -293,15 +293,17 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -309,7 +311,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -309,7 +311,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -318,7 +320,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -318,7 +320,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -326,7 +328,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -326,7 +328,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -335,7 +337,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -335,7 +337,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -343,7 +345,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -343,7 +345,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -352,7 +354,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -352,7 +354,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -360,7 +362,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -360,7 +362,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -372,14 +374,17 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -372,14 +374,17 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -431,18 +436,18 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -431,18 +436,18 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -451,30 +456,35 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -451,30 +456,35 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -482,7 +492,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -482,7 +492,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -491,7 +501,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -491,7 +501,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -499,7 +509,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -499,7 +509,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -508,7 +518,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -508,7 +518,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -516,7 +526,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -516,7 +526,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -525,7 +535,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -525,7 +535,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -533,7 +543,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -533,7 +543,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -545,10 +555,10 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -545,10 +555,10 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -557,14 +567,15 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -557,14 +567,15 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -572,19 +583,19 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -572,19 +583,19 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -602,9 +613,11 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -602,9 +613,11 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -613,7 +626,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -613,7 +626,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -622,7 +635,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -622,7 +635,7 @@ public class MediaSourceRepository : IMediaSourceRepository
foreach(JellyfinPathReplacementdeleteintoDelete)
{
await_dbConnection.ExecuteAsync(
awaitdbContext.Connection.ExecuteAsync(
@"DELETE FROM JellyfinPathReplacement WHERE Id = @Id",
new{delete.Id});
}
@ -632,41 +645,41 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -632,41 +645,41 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -718,18 +731,18 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -718,18 +731,18 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -740,14 +753,15 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -740,14 +753,15 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -755,37 +769,37 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -755,37 +769,37 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -803,9 +817,11 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -803,9 +817,11 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -814,7 +830,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -814,7 +830,7 @@ public class MediaSourceRepository : IMediaSourceRepository
foreach(EmbyPathReplacementupdateintoUpdate)
{
await_dbConnection.ExecuteAsync(
awaitdbContext.Connection.ExecuteAsync(
@"UPDATE EmbyPathReplacement
SETEmbyPath=@EmbyPath,LocalPath=@LocalPath
WHEREId=@Id",
@ -823,7 +839,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -823,7 +839,7 @@ public class MediaSourceRepository : IMediaSourceRepository
foreach(EmbyPathReplacementdeleteintoDelete)
{
await_dbConnection.ExecuteAsync(
awaitdbContext.Connection.ExecuteAsync(
@"DELETE FROM EmbyPathReplacement WHERE Id = @Id",
new{delete.Id});
}
@ -833,54 +849,59 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -833,54 +849,59 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -888,7 +909,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -888,7 +909,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -897,7 +918,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -897,7 +918,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -905,7 +926,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -905,7 +926,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -914,7 +935,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -914,7 +935,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -922,7 +943,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -922,7 +943,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -931,7 +952,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -931,7 +952,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -939,7 +960,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@@ -939,7 +960,7 @@ public class MediaSourceRepository : IMediaSourceRepository
@ -342,101 +359,164 @@ public class MetadataRepository : IMetadataRepository
@@ -342,101 +359,164 @@ public class MetadataRepository : IMetadataRepository
@ -53,7 +50,7 @@ public class MusicVideoRepository : IMusicVideoRepository
@@ -53,7 +50,7 @@ public class MusicVideoRepository : IMusicVideoRepository
{
if(mediaItem.ArtistId!=artist.Id)
{
await_dbConnection.ExecuteAsync(
awaitdbContext.Connection.ExecuteAsync(
@"UPDATE MusicVideo SET ArtistId = @ArtistId WHERE Id = @Id",
new{mediaItem.Id,ArtistId=artist.Id});
@ -67,8 +64,10 @@ public class MusicVideoRepository : IMusicVideoRepository
@@ -67,8 +64,10 @@ public class MusicVideoRepository : IMusicVideoRepository
@ -76,10 +75,12 @@ public class MusicVideoRepository : IMusicVideoRepository
@@ -76,10 +75,12 @@ public class MusicVideoRepository : IMusicVideoRepository
@ -103,20 +103,29 @@ public class MusicVideoRepository : IMusicVideoRepository
@@ -103,20 +103,29 @@ public class MusicVideoRepository : IMusicVideoRepository
@ -135,8 +144,10 @@ public class MusicVideoRepository : IMusicVideoRepository
@@ -135,8 +144,10 @@ public class MusicVideoRepository : IMusicVideoRepository
@ -145,11 +156,15 @@ public class MusicVideoRepository : IMusicVideoRepository
@@ -145,11 +156,15 @@ public class MusicVideoRepository : IMusicVideoRepository
@ -48,8 +45,10 @@ public class OtherVideoRepository : IOtherVideoRepository
@@ -48,8 +45,10 @@ public class OtherVideoRepository : IOtherVideoRepository
@ -57,10 +56,13 @@ public class OtherVideoRepository : IOtherVideoRepository
@@ -57,10 +56,13 @@ public class OtherVideoRepository : IOtherVideoRepository
@ -69,11 +71,13 @@ public class OtherVideoRepository : IOtherVideoRepository
@@ -69,11 +71,13 @@ public class OtherVideoRepository : IOtherVideoRepository
@ -81,14 +85,17 @@ public class OtherVideoRepository : IOtherVideoRepository
@@ -81,14 +85,17 @@ public class OtherVideoRepository : IOtherVideoRepository
"SELECT COUNT(*) FROM Episode WHERE Id in @EpisodeIds",
new{EpisodeIds=episodeIds})
.Map(c=>c==episodeIds.Count);
}
publicasyncTask<List<Show>>GetAllShows()
{
@ -161,7 +167,9 @@ public class TelevisionRepository : ITelevisionRepository
@@ -161,7 +167,9 @@ public class TelevisionRepository : ITelevisionRepository
@ -169,7 +177,6 @@ public class TelevisionRepository : ITelevisionRepository
@@ -169,7 +177,6 @@ public class TelevisionRepository : ITelevisionRepository
@ -357,7 +364,7 @@ public class TelevisionRepository : ITelevisionRepository
@@ -357,7 +364,7 @@ public class TelevisionRepository : ITelevisionRepository
episode.SeasonId=season.Id;
episode.Season=season;
await_dbConnection.ExecuteAsync(
awaitdbContext.Connection.ExecuteAsync(
@"UPDATE Episode SET SeasonId = @SeasonId WHERE Id = @EpisodeId",
new{SeasonId=season.Id,EpisodeId=episode.Id});
}
@ -367,8 +374,10 @@ public class TelevisionRepository : ITelevisionRepository
@@ -367,8 +374,10 @@ public class TelevisionRepository : ITelevisionRepository
@ -376,10 +385,13 @@ public class TelevisionRepository : ITelevisionRepository
@@ -376,10 +385,13 @@ public class TelevisionRepository : ITelevisionRepository
@ -388,7 +400,6 @@ public class TelevisionRepository : ITelevisionRepository
@@ -388,7 +400,6 @@ public class TelevisionRepository : ITelevisionRepository
@ -521,8 +532,10 @@ public class TelevisionRepository : ITelevisionRepository
@@ -521,8 +532,10 @@ public class TelevisionRepository : ITelevisionRepository
@ -530,10 +543,13 @@ public class TelevisionRepository : ITelevisionRepository
@@ -530,10 +543,13 @@ public class TelevisionRepository : ITelevisionRepository
@ -541,7 +557,7 @@ public class TelevisionRepository : ITelevisionRepository
@@ -541,7 +557,7 @@ public class TelevisionRepository : ITelevisionRepository
@ -550,38 +566,49 @@ public class TelevisionRepository : ITelevisionRepository
@@ -550,38 +566,49 @@ public class TelevisionRepository : ITelevisionRepository
@ -613,28 +640,39 @@ public class TelevisionRepository : ITelevisionRepository
@@ -613,28 +640,39 @@ public class TelevisionRepository : ITelevisionRepository
@ -647,7 +685,7 @@ public class TelevisionRepository : ITelevisionRepository
@@ -647,7 +685,7 @@ public class TelevisionRepository : ITelevisionRepository
});
}
returnawait_dbConnection.ExecuteAsync(
returnawaitdbContext.Connection.ExecuteAsync(
"INSERT INTO Actor (Name, Role, \"Order\", ShowMetadataId, ArtworkId) VALUES (@Name, @Role, @Order, @MetadataId, @ArtworkId)",
@ -655,11 +693,13 @@ public class TelevisionRepository : ITelevisionRepository
@@ -655,11 +693,13 @@ public class TelevisionRepository : ITelevisionRepository
@ -672,7 +712,7 @@ public class TelevisionRepository : ITelevisionRepository
@@ -672,7 +712,7 @@ public class TelevisionRepository : ITelevisionRepository
});
}
returnawait_dbConnection.ExecuteAsync(
returnawaitdbContext.Connection.ExecuteAsync(
"INSERT INTO Actor (Name, Role, \"Order\", EpisodeMetadataId, ArtworkId) VALUES (@Name, @Role, @Order, @MetadataId, @ArtworkId)",
@ -680,14 +720,16 @@ public class TelevisionRepository : ITelevisionRepository
@@ -680,14 +720,16 @@ public class TelevisionRepository : ITelevisionRepository