예제 #1
0
 public CursorValue(Context context, IType itemType, IStoredEnumerable documents)
     : base(new CursorType(itemType))
 {
     this.context    = context;
     this.enumerator = documents.GetEnumerator();
     this.Mutable    = itemType is CategoryType ? ((CategoryType)itemType).Mutable : false;
 }
예제 #2
0
        public override IValue interpret(Context context)
        {
            IStore            store = DataStore.Instance;
            IQuery            query = buildFetchManyQuery(context, store);
            IStoredEnumerable docs  = store.FetchMany(query);
            IType             type  = this.type != null ? (IType)this.type : AnyType.Instance;

            return(new CursorValue(context, type, docs));
        }