mirror of
https://github.com/bitwarden/server.git
synced 2026-01-31 06:03:12 +08:00
16 lines
400 B
C#
16 lines
400 B
C#
|
|
using Bit.Infrastructure.EntityFramework.Repositories;
|
|||
|
|
using Bit.SeederApi.Queries.Interfaces;
|
|||
|
|
|
|||
|
|
namespace Bit.SeederApi.Queries;
|
|||
|
|
|
|||
|
|
public class GetAllPlayIdsQuery(DatabaseContext databaseContext) : IGetAllPlayIdsQuery
|
|||
|
|
{
|
|||
|
|
public List<string> GetAllPlayIds()
|
|||
|
|
{
|
|||
|
|
return databaseContext.PlayItem
|
|||
|
|
.Select(pd => pd.PlayId)
|
|||
|
|
.Distinct()
|
|||
|
|
.ToList();
|
|||
|
|
}
|
|||
|
|
}
|