public SrStoredSummarizedEpisodeEntity(int episodeId, SrStoredSummarizedEpisode episode) { PartitionKey = "SrStoredSummarizedEpisode"; RowKey = episodeId.ToString("D"); EpisodeId = episodeId; OriginalAudioUrl = episode.OriginalAudioUrl; AudioUrl = episode.AudioUrl; AudioLocale = episode.AudioLocale; Title = episode.Title; Description = episode.Description; Url = episode.Url; PublishDateUtc = episode.PublishDateUtc; ImageUrl = episode.ImageUrl; ProgramId = episode.ProgramId; ProgramName = episode.ProgramName; Transcription = episode.Transcription; Title_Original = episode.Title_Original; Description_Original = episode.Description_Original; Transcription_Original = episode.Transcription_Original; Title_EN = episode.Title_EN; Description_EN = episode.Description_EN; Transcription_EN = episode.Transcription_EN; SpeechUrl_EN = episode.SpeechUrl_EN; Title_SV = episode.Title_SV; Description_SV = episode.Description_SV; Transcription_SV = episode.Transcription_SV; SpeechUrl_SV = episode.SpeechUrl_SV; }
public async Task StoreSummarizedEpisode(int episodeId, SrStoredSummarizedEpisode episode) { await _episodeSummarizedTable.CreateIfNotExistsAsync(); var entity = new SrStoredSummarizedEpisodeEntity(episodeId, episode); var insertOrMergeOperation = TableOperation.InsertOrMerge(entity); await _episodeSummarizedTable.ExecuteAsync(insertOrMergeOperation); }