示例#1
0
 public SVR_AniDB_File GetByHash(string hash)
 {
     using (RepoLock.ReaderLock())
     {
         return(IsCached ? Hashes.GetOne(hash) : Table.FirstOrDefault(a => a.Hash == hash));
     }
 }
示例#2
0
 public SVR_AniDB_Anime GetByAnimeID(int id)
 {
     lock (Cache)
     {
         return(Animes.GetOne(id));
     }
 }
示例#3
0
 public RenameScript GetDefaultScript()
 {
     using (RepoLock.ReaderLock())
     {
         if (IsCached)
             return EnabledOnImport.GetOne(1);
         return Table.FirstOrDefault(a => a.IsEnabledOnImport==1);
     }
 }
示例#4
0
 public TvDB_Series GetByTvDBID(int id)
 {
     using (RepoLock.ReaderLock())
     {
         if (IsCached)
         {
             return(TvDBIDs.GetOne(id));
         }
         return(Table.FirstOrDefault(a => a.SeriesID == id));
     }
 }
示例#5
0
 public AniDB_Episode GetByEpisodeID(int id)
 {
     using (RepoLock.ReaderLock())
     {
         if (IsCached)
         {
             return(EpisodesIds.GetOne(id));
         }
         return(Table.FirstOrDefault(a => a.EpisodeID == id));
     }
 }
示例#6
0
 public TvDB_Episode GetByTvDBID(int id)
 {
     lock (Cache)
     {
         return(EpisodeIDs.GetOne(id));
     }
 }
示例#7
0
 public SVR_AniDB_File GetBySHA1(string hash)
 {
     lock (Cache)
     {
         return(SHA1s.GetOne(hash));
     }
 }
示例#8
0
 public SVR_AniDB_File GetByHash(string hash)
 {
     lock (Cache)
     {
         return(Hashes.GetOne(hash));
     }
 }
示例#9
0
 public SVR_AniDB_File GetByFileID(int fileID)
 {
     lock (Cache)
     {
         return(FileIds.GetOne(fileID));
     }
 }
示例#10
0
 public SVR_AniDB_File GetByFileID(int fileID)
 {
     using (RepoLock.ReaderLock())
     {
         return(IsCached ? FileIds.GetOne(fileID) : Table.FirstOrDefault(a => a.FileID == fileID));
     }
 }
示例#11
0
 public AnimeCharacter GetByAniDBID(int id)
 {
     lock (Cache)
     {
         return(AniDBIDs.GetOne(id));
     }
 }
示例#12
0
 public SVR_VideoLocal GetByMD5(string hash)
 {
     lock (Cache)
     {
         return(MD5.GetOne(hash));
     }
 }
示例#13
0
 public SVR_VideoLocal GetByHash(string hash)
 {
     lock (Cache)
     {
         return(Hashes.GetOne(hash));
     }
 }
示例#14
0
 public AnimeStaff GetByAniDBID(int id)
 {
     lock (Cache)
     {
         return(AniDBIDs.GetOne(id));
     }
 }
示例#15
0
 public SVR_AniDB_File GetByMD5(string hash)
 {
     using (CacheLock.ReaderLock())
     {
         return(IsCached ? MD5s.GetOne(hash) : Table.FirstOrDefault(a => a.MD5 == hash));
     }
 }
 public SVR_AnimeSeries_User GetByUserAndSeriesID(int userid, int seriesid)
 {
     lock (Cache)
     {
         return(UsersSeries.GetOne(userid, seriesid));
     }
 }
 public TvDB_Series GetByTvDBID(int id)
 {
     lock (Cache)
     {
         return(TvDBIDs.GetOne(id));
     }
 }
示例#18
0
 public SVR_VideoLocal GetBySHA1(string hash)
 {
     lock (Cache)
     {
         return(SHA1.GetOne(hash));
     }
 }
 public SVR_AnimeGroup_User GetByUserAndGroupID(int userid, int groupid)
 {
     lock (Cache)
     {
         return(UsersGroups.GetOne(userid, groupid));
     }
 }
示例#20
0
 public SVR_AniDB_File GetByMD5(string hash)
 {
     lock (Cache)
     {
         return(MD5s.GetOne(hash));
     }
 }
示例#21
0
 public SVR_AnimeSeries GetByAnimeID(int id)
 {
     lock (Cache)
     {
         return(AniDBIds.GetOne(id));
     }
 }
示例#22
0
 public VideoLocal_User GetByUserIDAndVideoLocalID(int userid, int vidid)
 {
     lock (Cache)
     {
         return(UsersVideoLocals.GetOne(userid, vidid));
     }
 }
示例#23
0
 public AniDB_Tag GetByTagID(int id)
 {
     using (CacheLock.ReaderLock())
     {
         return(IsCached ? Tags.GetOne(id) : Table.FirstOrDefault(a => a.TagID == id));
     }
 }
 public TvDB_ImagePoster GetByTvDBID(int id)
 {
     lock (Cache)
     {
         return(TvDBIDs.GetOne(id));
     }
 }
示例#25
0
 public SVR_AnimeEpisode_User GetByUserIDAndEpisodeID(int userid, int epid)
 {
     lock (Cache)
     {
         return(UsersEpisodes.GetOne(userid, epid));
     }
 }
 public AniDB_Episode GetByEpisodeID(int id)
 {
     lock (Cache)
     {
         return(EpisodesIds.GetOne(id));
     }
 }
示例#27
0
 public AniDB_Tag GetByTagID(int id)
 {
     lock (Cache)
     {
         return(Tags.GetOne(id));
     }
 }
 public CrossRef_AniDB_TvDB_Episode GetByAniDBEpisodeID(int id)
 {
     // TODO Change this when multiple AniDB <=> TvDB Episode mappings
     lock (Cache)
     {
         return(EpisodeIDs.GetOne(id));
     }
 }
示例#29
0
 public SVR_AnimeEpisode GetByAniDBEpisodeID(int epid)
 {
     lock (Cache)
     {
         //AniDB_Episode may not unique for the series, Example with Toriko Episode 1 and One Piece 492, same AniDBEpisodeID in two shows.
         return(EpisodeIDs.GetOne(epid));
     }
 }
示例#30
0
 public RenameScript GetByName(string scriptName)
 {
     using (RepoLock.ReaderLock())
     {
         if (IsCached)
             return ScriptNames.GetOne(scriptName);
         return Table.FirstOrDefault(a => a.ScriptName==scriptName);
     }
 }