From a3c3945540a0be56effc665902687cd1bcef7cae Mon Sep 17 00:00:00 2001 From: tidusjar Date: Fri, 5 Aug 2016 12:35:17 +0100 Subject: [PATCH] Dump an item --- PlexRequests.Services/Jobs/PlexEpisodeCacher.cs | 2 ++ PlexRequests.Store/Repository/BaseGenericRepository.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/PlexRequests.Services/Jobs/PlexEpisodeCacher.cs b/PlexRequests.Services/Jobs/PlexEpisodeCacher.cs index 847fb2a5e..1fe430a56 100644 --- a/PlexRequests.Services/Jobs/PlexEpisodeCacher.cs +++ b/PlexRequests.Services/Jobs/PlexEpisodeCacher.cs @@ -129,6 +129,8 @@ namespace PlexRequests.Services.Jobs // Delete all of the current items Repo.DeleteAll(TableName); + Log.Debug("Inserting The following (1st item)"); + Log.Debug(entities.FirstOrDefault().DumpJson()); // Insert the new items var result = Repo.BatchInsert(entities, TableName, typeof(PlexEpisodes).GetPropertyNames()); diff --git a/PlexRequests.Store/Repository/BaseGenericRepository.cs b/PlexRequests.Store/Repository/BaseGenericRepository.cs index 82c2a52e2..1619f37dd 100644 --- a/PlexRequests.Store/Repository/BaseGenericRepository.cs +++ b/PlexRequests.Store/Repository/BaseGenericRepository.cs @@ -27,6 +27,7 @@ using System; using System.Collections.Generic; using System.Data; +using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks;