feat(templates): GetTemplateStubsAsync untracked identity/edge projection
This commit is contained in:
+10
@@ -90,6 +90,16 @@ public class TemplateEngineRepository : ITemplateEngineRepository
|
||||
.ToListAsync(cancellationToken);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<IReadOnlyList<TemplateStub>> GetTemplateStubsAsync(CancellationToken cancellationToken = default)
|
||||
{
|
||||
return await _context.Templates
|
||||
.AsNoTracking()
|
||||
.OrderBy(t => t.Name)
|
||||
.Select(t => new TemplateStub(t.Id, t.Name, t.ParentTemplateId, t.FolderId, t.IsDerived, t.OwnerCompositionId))
|
||||
.ToListAsync(cancellationToken);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
// Two deliberate departures from <see cref="GetAllTemplatesAsync"/>:
|
||||
// <list type="number">
|
||||
|
||||
Reference in New Issue
Block a user