Spaces:
Sleeping
Sleeping
Download src/ClipForge.Infrastructure/Repositories/VideoScriptRepository.cs from clipeforge/app: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/spaces/clipeforge/app/resolve/552abe3ccef23a4b21bc1f79117ee5f514b27859/src/ClipForge.Infrastructure/Repositories/VideoScriptRepository.cs
- Command line
-
hf download hf://spaces/clipeforge/app@552abe3ccef23a4b21bc1f79117ee5f514b27859/src/ClipForge.Infrastructure/Repositories/VideoScriptRepository.cs
-
curl -L -o VideoScriptRepository.cs https://huggingface.co/spaces/clipeforge/app/resolve/552abe3ccef23a4b21bc1f79117ee5f514b27859/src/ClipForge.Infrastructure/Repositories/VideoScriptRepository.cs
535 Bytes
| using ClipForge.Core.Entities; | |
| using ClipForge.Core.Interfaces; | |
| using ClipForge.Infrastructure.Data; | |
| using Microsoft.EntityFrameworkCore; | |
| namespace ClipForge.Infrastructure.Repositories; | |
| public class VideoScriptRepository : BaseRepository<VideoScript>, IVideoScriptRepository | |
| { | |
| public VideoScriptRepository(AppDbContext context) : base(context) { } | |
| public async Task<VideoScript?> GetByIdeaIdAsync(Guid ideaId, CancellationToken ct = default) | |
| => await _dbSet.FirstOrDefaultAsync(s => s.VideoIdeaId == ideaId, ct); | |
| } | |