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); }
public InTempTableWhereFragment(string tempTableName, string tempTableColumn, IPagedStatement paging, bool isIdCollection) { _tempTableName = tempTableName; _tempTableColumn = tempTableColumn; _paging = paging; _isIdCollection = isIdCollection; }
public Statement BuildStatement(string tempTableName, IPagedStatement paging) { return(new IncludedDocumentStatement(_storage, this, tempTableName, paging)); }