mirror of
https://github.com/bitwarden/server
synced 2026-01-16 15:33:19 +00:00
This is still a join table, but the Data suffix was colliding with the concept of a JSON transfer model. The PlayItem name is designed to indicate that these records are not Play entities, but indications that a given Item (user or organization for now) is associated with a given Play
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();
|
|
}
|
|
}
|