Example #1
0
        public async IAsyncEnumerable <IPodEntity> ArchivedPods()
        {
            using var access = await RepositoryService.GetAccess(CancellationToken.None);

            var list = access.Connection.Table <PodEntity>().Where(e => e.IsDeleted);

            foreach (var entity in await list.ToListAsync())
            {
                yield return(entity);
            }
        }
Example #2
0
        public async Task <IRadioEntity> ByDeviceUuid(Guid deviceUuid)
        {
            using var access = await RepositoryService.GetAccess(CancellationToken.None);

            return(await access.Connection.Table <RadioEntity>().FirstOrDefaultAsync(x => x.DeviceUuid == deviceUuid));
        }