public IncludedDocumentStatement(IDocumentStorage <T> storage, IncludePlan <T> includePlan, string tempTableName) : base(storage, storage.Fields) { var initial = new InTempTableWhereFragment(tempTableName, includePlan.IdAlias); Where = storage.FilterDocuments(null, initial); }
public IncludedDocumentStatement(IDocumentStorage <T> storage, IncludePlan <T> includePlan, string tempTableName, IPagedStatement paging) : base(storage, storage.Fields) { var initial = new InTempTableWhereFragment(tempTableName, includePlan.IdAlias, paging, includePlan.IsIdCollection()); Where = storage.FilterDocuments(null, initial); }