public SVR_AniDB_File GetByHash(string hash) { using (RepoLock.ReaderLock()) { return(IsCached ? Hashes.GetOne(hash) : Table.FirstOrDefault(a => a.Hash == hash)); } }
public SVR_AniDB_Anime GetByAnimeID(int id) { lock (Cache) { return(Animes.GetOne(id)); } }
public RenameScript GetDefaultScript() { using (RepoLock.ReaderLock()) { if (IsCached) return EnabledOnImport.GetOne(1); return Table.FirstOrDefault(a => a.IsEnabledOnImport==1); } }
public TvDB_Series GetByTvDBID(int id) { using (RepoLock.ReaderLock()) { if (IsCached) { return(TvDBIDs.GetOne(id)); } return(Table.FirstOrDefault(a => a.SeriesID == id)); } }
public AniDB_Episode GetByEpisodeID(int id) { using (RepoLock.ReaderLock()) { if (IsCached) { return(EpisodesIds.GetOne(id)); } return(Table.FirstOrDefault(a => a.EpisodeID == id)); } }
public TvDB_Episode GetByTvDBID(int id) { lock (Cache) { return(EpisodeIDs.GetOne(id)); } }
public SVR_AniDB_File GetBySHA1(string hash) { lock (Cache) { return(SHA1s.GetOne(hash)); } }
public SVR_AniDB_File GetByHash(string hash) { lock (Cache) { return(Hashes.GetOne(hash)); } }
public SVR_AniDB_File GetByFileID(int fileID) { lock (Cache) { return(FileIds.GetOne(fileID)); } }
public SVR_AniDB_File GetByFileID(int fileID) { using (RepoLock.ReaderLock()) { return(IsCached ? FileIds.GetOne(fileID) : Table.FirstOrDefault(a => a.FileID == fileID)); } }
public AnimeCharacter GetByAniDBID(int id) { lock (Cache) { return(AniDBIDs.GetOne(id)); } }
public SVR_VideoLocal GetByMD5(string hash) { lock (Cache) { return(MD5.GetOne(hash)); } }
public SVR_VideoLocal GetByHash(string hash) { lock (Cache) { return(Hashes.GetOne(hash)); } }
public AnimeStaff GetByAniDBID(int id) { lock (Cache) { return(AniDBIDs.GetOne(id)); } }
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)); } }
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)); } }
public SVR_AniDB_File GetByMD5(string hash) { lock (Cache) { return(MD5s.GetOne(hash)); } }
public SVR_AnimeSeries GetByAnimeID(int id) { lock (Cache) { return(AniDBIds.GetOne(id)); } }
public VideoLocal_User GetByUserIDAndVideoLocalID(int userid, int vidid) { lock (Cache) { return(UsersVideoLocals.GetOne(userid, vidid)); } }
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)); } }
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)); } }
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)); } }
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)); } }
public RenameScript GetByName(string scriptName) { using (RepoLock.ReaderLock()) { if (IsCached) return ScriptNames.GetOne(scriptName); return Table.FirstOrDefault(a => a.ScriptName==scriptName); } }