Added loading of section's text entries
This commit is contained in:
2 files changed
+41
-2
No files matched your search
@@ -0,0 +1,14 @@
|
||||
using System.Collections;
|
||||
using DataModel.Database;
|
||||
using DataModel.Database.Common;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Processor;
|
||||
|
||||
public static class TextElementProcessor
|
||||
{
|
||||
public static Task<IAsyncEnumerable<TextElement>> GetTextElements(DataContext db, Section section)
|
||||
{
|
||||
return Task.FromResult(db.TextElements.Where(n => n.Section == section).AsAsyncEnumerable());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user