/// <summary> /// パスを追加する /// </summary> /// <param name="niconicoId"></param> /// <param name="filePath"></param> public void Add(string niconicoId, string filePath) { filePath = IOUtils.GetRootedPath(filePath); if (this.Exists(niconicoId)) { var data = this.GetFileData(niconicoId); data !.FilePaths.AddUnique(filePath); this.dataBase.Update(data, Types.VideoFile.TableName); } else { var data = new Types.VideoFile() { NiconicoId = niconicoId, }; data.FilePaths.Add(filePath); this.dataBase.Store(data, Types.VideoFile.TableName); } }