17 lines
705 B
C#
17 lines
705 B
C#
using System.Linq;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using LCU.Library.Internal.DocumentIngestorModels.Entities;
|
|
|
|
namespace LCU.Api.Internal.DocumentIngestorLib.Extensions.Queryables
|
|
{
|
|
public static class IncludeAllQueryable
|
|
{
|
|
public static IQueryable<DocumentProcessingInfo> IncludeAll(this IQueryable<DocumentProcessingInfo> queryable)
|
|
{
|
|
return queryable.Include(documentProcessingInfo => documentProcessingInfo.IngestorRunInfo)
|
|
.Include(documentProcessingInfo => documentProcessingInfo.ProcessingLogs)
|
|
.Include(documentProcessingInfo => documentProcessingInfo.MemberNotificationInfos);
|
|
}
|
|
}
|
|
}
|